Description
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>
Attachments
Issue Links
- is part of
-
LOG4NET-38 EventLogAppender: Add support for setting the Category on Event Log messages.
- Resolved