logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill McCormick" <wpmccorm...@gmail.com>
Subject custom fields?
Date Thu, 02 Oct 2008 16:39:15 GMT
Hello,

Is it possible to add custom fields to log4net. I'd like to be able to do
something like this:

log.InfoFormat("Custom1", "Custom2", "Custom3", "{0}","Message");

and then have an appender look something like:

<layout type="log4net.Layout.PatternLayout">
  <conversionPattern value="%custom1 %custom2 %custom3 %message%newline" />
</layout>


Thanks,

Bill

Mime
View raw message