In the beta 6 download there is an extension that supports passing the
event ID to the logger. This is not built as part of the standard
log4net binary.

You need to build the extensions\log4net.Ext.EventID into your assembly
or a separate assembly.
Then get the logger using EventIDLogManager.GetLogger(...); 
You can then pass the event ID to each of the Debug(), Info() etc...
methods.

See the example in: 
examples\net\extensibility\EventIDLogApp\src

Nicko

> -----Original Message-----
> From: Senthil Sivasubramanian S [mailto:[EMAIL PROTECTED] 
> Sent: 13 September 2004 13:14
> To: [email protected]
> Subject: Event ID in the EventLog
> 
> Going by log4net 1.2.0 Beta 6 - Release notes, I have been 
> trying to get the Event ID information also logged in the 
> Event Viewer. But I am not able to figure out the correct way 
> to do this.
>  
> Would greatly appreciate if someone can shed more light on 
> how to get this working.
>  
> Thanks
> Senthil SS.
>  
> 

Reply via email to