You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2020/04/04 22:30:05 UTC

[jira] [Updated] (LOG4NET-258) Please add ability to dynamically set User and other Event Viewer properties using the Thread Contex or another means.

     [ https://issues.apache.org/jira/browse/LOG4NET-258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers updated LOG4NET-258:
--------------------------------

LOG4NET is now dormant.  

> Please add ability to dynamically set 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
>            Priority: Major
>              Labels: EventLogAppender, properties
>             Fix For: 1.2/2.0 Maintenance Release
>
>   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 was sent by Atlassian Jira
(v8.3.4#803005)