D David Levine Dec 18, 2004 #2 Use the System.Diagnostics.EventLog class. At is simplest you can use: System.Diagnostics.EventLog.WriteLog("applicationName","error message");
Use the System.Diagnostics.EventLog class. At is simplest you can use: System.Diagnostics.EventLog.WriteLog("applicationName","error message");
B Bennie Haelen Dec 18, 2004 #3 Gas said: Hi, Can anyone tell me how can I log an Windows Event Log using C#? Gas Click to expand... You can use the System.Windows.EventLog class. I has a number of static methods, like "WriteEntry" that you can use to write to the event log. Bennie Haelen
Gas said: Hi, Can anyone tell me how can I log an Windows Event Log using C#? Gas Click to expand... You can use the System.Windows.EventLog class. I has a number of static methods, like "WriteEntry" that you can use to write to the event log. Bennie Haelen