Eric
It works without registry updating.
Thanks.
Ping Xie
CACI
4831 Walden Lane
Lanham, MD 20706
[EMAIL PROTECTED]
(301) 306-8200 - Main
(301) 306-2829 - Direct
| Eric Means <[EMAIL PROTECTED]>
02/18/2005 11:23 AM
|
|
I believe you can just set it up like so:
<appender name="EventLogAppender" type="log4net.Appender.EventLogAppender" >
<applicationName value="log4netTest" />
<logName value="CACI" />
<param name="Threshold" value="INFO" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="Logger: %c%nNDC: %x%n%n%m%n" />
</layout>
</appender>
If that doesn't work you may need to do a little registry updating to
link the source (the application) to the desired log. (This can be
done with a simple .Net app, and only need be done once per computer.)
On Fri, 18 Feb 2005 09:20:00 -0500, Ping Xie <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm using EventLogAppender to log to windows event log. Does anyone know how
> to config it so that it outputs the logging to a specific log instead of
> Application log? for example to CACI log in the screenshot shown below.
>
>
>
> Thanks.
>
> Ping Xie
>
> CACI
> 4831 Walden Lane
> Lanham, MD 20706
> [EMAIL PROTECTED]
> (301) 306-8200 - Main
> (301) 306-2829 - Direct
>
--
Eric Means
[EMAIL PROTECTED]
http://www.randomtree.org/eric/
