[
https://issues.apache.org/jira/browse/LOG4NET-214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stefan Bodewig updated LOG4NET-214:
-----------------------------------
Fix Version/s: 1.2.11
> EventLogAppender should also use config file to set EventId
> -----------------------------------------------------------
>
> Key: LOG4NET-214
> URL: https://issues.apache.org/jira/browse/LOG4NET-214
> Project: Log4net
> Issue Type: Bug
> Components: Appenders
> Affects Versions: 1.2.10
> Reporter: Vincent Guigui
> Fix For: 1.2.11
>
>
> It should be possible to set the EventId of the EventLogAppender using the
> config file.
> example:
> IT would like to be able to setup EventId for certain error without having to
> recompile the application:
> <appender name="EventLogAppender_Terminated"
> type="log4net.Appender.EventLogAppender" >
> <applicationName value="..." />
> <eventId value="1234" />
> <layout type="log4net.Layout.PatternLayout">
> <conversionPattern value="........." />
> </layout>
> <filter type="log4net.Filter.LevelRangeFilter">
> <levelMin value="ERROR" />
> </filter>
> <filter type="log4net.Filter.StringMatchFilter">
> <stringToMatch value="DatabaseException" />
> </filter>
> <filter type="log4net.Filter.DenyAllFilter" />
> </appender>
>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira