logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dean Fiala" <dfi...@celadonlabs.com>
Subject RE: AdoNetAppender Multiple Columns
Date Tue, 26 Sep 2006 15:11:49 GMT
I believe you'll find the answer here.  


You'll want to use a Thread context property to store the user name.

-----Original Message-----
From: ebergemann [mailto:ebergemann@paragonedge.com] 
Sent: Tuesday, September 26, 2006 10:22 AM
To: log4net-user@logging.apache.org
Subject: AdoNetAppender Multiple Columns

    I am wanting to log the date, a message as well as the username to the
database with log4net. However, it appears that the only value that I can
explicitly indicate to log for log4net is the message. I do not want to have
to place the username as well as other information all within the message

    How could I set up log4net to log to the database and have the
applications username logged to a seperate column than the message is logged

   Any help would be greatly appreciated.

   -Eric Bergemann

View this message in context:
Sent from the Log4net - Users mailing list archive at Nabble.com.

View raw message