Return to Snippet

Revision: 59727
at September 26, 2012 23:16 by Verician


Initial Code
using System.Diagnostics;


EventLog.WriteEntry("Error Title", exp.Message, System.Diagnostics.EventLogEntryType.Error);

Initial URL


Initial Description
Output your errors to the Windows event log. Very effective to output from try catch blocks.

Initial Title
Write to the Event Log C#

Initial Tags
event, log

Initial Language
C#