Nicko,

I know that you are busy but just wanted to let you know, the log4net-sdk-net-1.1.chm that
came with log4net-1.2.0-beta8 doesn't have an EventLogAppender. I found a reference to
an earlier response using LogName:


http://sourceforge.net/mailarchive/forum.php?forum_id=7403&max_rows=25&style=nested&viewmonth=200206

I will give it a go.

Thanks,
Dave


From: "Nicko Cadell" <[EMAIL PROTECTED]>
Reply-To: "Log4NET User" <[email protected]>
To: "Log4NET User" <[email protected]>
Subject: RE: Help with EventLog Appender
Date: Sun, 22 Aug 2004 16:49:48 +0100

Dave,

The ApplicationName is the name of your application. In the event viewer
this is the 'Source' column.

To write to a different event log you need to set the LogName property.
The default value of LogName is 'Application'.

Cheers,
Nicko

> -----Original Message-----
> From: Dave Elliott [mailto:[EMAIL PROTECTED]
> Sent: 20 August 2004 15:57
> To: Log4Net
> Subject: Help with EventLog Appender
>
> I have the following defined:
>
> <appender name="EventLog" type="log4net.Appender.EventLogAppender" >
>     param name="ApplicationName" value="MyEventLog" />
>     <layout type="log4net.Layout.PatternLayout">
>         <param name="ConversionPattern" value="%m" />
>     </layout>
> </appender>
>
> When I use this appender, the event log is NOT created and
> all messages end up going to the Application Event Log.
>
> So messages are getting to the event viewer just not where I
> want it to go.
>
> Any help would be appreciated.
>
> Thanks,
> Dave
>

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar � get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/




Reply via email to