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 Mark Richman <MR...@Affinity.com> on 2005/01/31 23:05:07 UTC

Setting EventID for EventLogAppender

How do I set the EventID for the EventLogAppender?

 

This is my config:

 

<appender name="EventLogAppender"
type="log4net.Appender.EventLogAppender" >

            <applicationName value="WAHP" />

            <layout type="log4net.Layout.PatternLayout">

                        <conversionPattern value="%d [%t] %-5p %c [%x] -
%m%n" />

            </layout>

  </appender>

 

I do not want to have to set the EventID value in my code. Can it be
autogenerated?

Mark A. Richman
Sr. Programmer
Affinity Internet, Inc.
(954) 334-8203
mrichman@affinity.com