[ https://issues.apache.org/jira/browse/LOG4NET-258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stefan Bodewig updated LOG4NET-258: ----------------------------------- Fix Version/s: (was: 1.2.10) 1.2.11 > Event Log Appender or Thread Context property. Please add ability to > dynamically set Category, User, and other Event Viewer properties using the > Thread Contex or another means. > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: LOG4NET-258 > URL: https://issues.apache.org/jira/browse/LOG4NET-258 > Project: Log4net > Issue Type: Wish > Environment: Log4Net 1.2.10 on Windows Server 2008 server. > Reporter: Mary M Pankiw > Labels: EventLogAppender, properties > Fix For: 1.2.11 > > Original Estimate: 24h > Remaining Estimate: 24h > > I am using the Event Log appender and need to be able to dynamically set the > event properties for each message. > Currently I am using the following: > Event Viewer Property How I set it up > Date appender "conversionPattern" > node value as %d (w/ "layout" node type = "log4net.Layout.PatternLayout") > Source appender "applicationName" node > value * Would be nice if this could be set dynamically too... > Type set based on type of log > Computer picked up automatically > Event ID Needed 2 things: 1. appender > "conversionPattern" node value as%property{EventID} 2. Set thread context > property before call to write log, example: > log4net.ThreadContext.Properties["EventID"] = 9999; > Category * HELP! :) > User * HELP! :) > * These are the ones I cannot find a way to set, I have scoured the internet > for examples, I would be thrilled (THRILLED) if these values could be set > like the EventID is set. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira