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