logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Grabowski <rongrabow...@yahoo.com>
Subject Re: extending the fileappender
Date Sat, 21 Feb 2009 16:29:21 GMT
If you follow the recommendation of creating your loggers based on the current class you can
use the %logger pattern to display what class the message came from. There is also a %username

If you have a custom user name that is stored in something like the ASP.Net Session you can
use store that value as a property then extract is using the %property{myUserName} pattern:


----- Original Message ----
From: rodchar <rodchar@hotmail.com>
To: log4net-dev@logging.apache.org
Sent: Friday, February 20, 2009 11:25:52 AM
Subject: extending the fileappender

hi all,

what's the easiest way to extend the fileappender? i'd to add what user
logged it and what class it came from?

View this message in context: http://www.nabble.com/extending-the-fileappender-tp22120783p22120783.html
Sent from the Log4net - Dev mailing list archive at Nabble.com.

View raw message