Re: asynchronous logging

2013-07-30 Thread Chinh Do
eadId"] = Thread.CurrentThread.ManagedThreadId.ToString(); loggingEvent.Properties["MyUserId"] = ... loggingEvent.Properties["MySessionId"] = ... ... AddToQueue(loggingEvent); } On Tue, Jul 30, 2013 at 5:42 PM, Farrington, Linda wrote: > Chinh Do, > > Thanks fo

Re: asynchronous logging

2013-07-30 Thread Chinh Do
What I did my my AsyncAppender was to write thread specific data into loggingEvent.Properties in the main thread, just before I add the loggingEvent to a queue. Then you can use "%P{}" in your log4net config section to get them later in the other thread. My AsyncAppender was based on log4net Async