출처 http://mainia.tistory.com/412
이벤트로그 쓰기 [csharp]static void Main(string[] args) { WriteEventLogEntry("This is an entry in the event log by daveoncsharp.com"); }
private static void WriteEventLogEntry(string message) { // Create an instance of EventLog System.Diagnostics.EventLog eventLog = new System.Diagnostics.EventLog();
// Check if the event source exists. If not create it. if (!System.Diagnostics.EventLog.SourceExists("TestApplication")) { // "Application" 이름이 […]