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 sc...@consultant.com on 2010/08/19 10:50:52 UTC

Writing to the category field...

Hi,

 Am just wondering is it possible to write the the category field in the event viewer in the same fashion as writing to the event field. For example to write to the event field:

log4net.ThreadContext.Properties["EventID"] = 15;

is there something like:

log4net.ThreadContext.Properties["Category"] = 23; ??

 Would appreciate any comments/suggestions you may have on this...

Rgds
S.