You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Wayne Bradney <Wa...@WallStreetSystems.com> on 2006/06/08 00:04:48 UTC

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