Event log

From Yefu's notes
Jump to: navigation, search
            EventLogTraceListener myTraceListener = new EventLogTraceListener("MyEventName");
            System.Diagnostics.Debug.Listeners.Add(myTraceListener);
            Debug.WriteLine("Program is started. ","Normal");