So, either I’m doing something so unbelievably stupid as to not warrant a response, or this is a real problem, right?

 

WMB


From: Wayne Bradney [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 07, 2006 6:05 PM
To: Log4NET User
Subject: Logging Thread Context Properties

 

I must be missing something here I’m trying to setup a thread property in my background thread such that my appender can inspect the property when an event is logged:

 

The thread does this:

 

log4net.ThreadContext.Properties["ThreadTaskDescription"] = “<some string>”;

log.Info(“Some message”);

 

 

In the appender, when I look at the Properties property of the LoggingEvent (“Some message”), it never has any properties at all.

 

Am I doing this right?

 

WMB

 

Reply via email to