We can create event logs using System.Diagnostics.
Application Log
Security Log
EventLog eventLog = new EventLog("Application");
eventLog.Source = "MyApp";
eventLog.WriteEntry("Application Started", EventLogEntryType.Information);
EventLog eventLog = new EventLog("Security");
eventLog.Source = "MyApp";
eventLog.WriteEntry("Application Started", EventLogEntryType.Information);
System Log
EventLog eventLog = new EventLog("System");
eventLog.Source = "MyApp";
eventLog.WriteEntry("Application Started", EventLogEntryType.Information);
Friday, January 23, 2009
Event Logs
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment