NET Logging Library
Logging to the Event Log
Basic Tasks > Logging to the Event Log

The Event Log target is used to log to the windows event log. 

It has these properties that can be configured:

 

 

//Example runtime configuration, can also use log.config, app.config, or web.config
Log.ResetConfiguration();   
EventLogTargettarget = new EventLogTarget();       
Log.Config.Targets.Add(target);

Log.Debug("This is a test");