Z
Zen
Hi,
Would someone please point out where I can go to view the event log for the
following code? I thought it was the Event Viewer | Application in the
Computer Management but I didn't see it. thanks!
catch(Exception ex)
{
// Create a trace listener for the event log.
EventLogTraceListener myTraceListener = new
EventLogTraceListener("myEventLogSource");
// Add the event log trace listener to the collection.
Trace.Listeners.Add(myTraceListener);
// Write output to the event log.
Trace.WriteLine( string.Format( "Error: {0}", ex.Message ) );
}
Would someone please point out where I can go to view the event log for the
following code? I thought it was the Event Viewer | Application in the
Computer Management but I didn't see it. thanks!
catch(Exception ex)
{
// Create a trace listener for the event log.
EventLogTraceListener myTraceListener = new
EventLogTraceListener("myEventLogSource");
// Add the event log trace listener to the collection.
Trace.Listeners.Add(myTraceListener);
// Write output to the event log.
Trace.WriteLine( string.Format( "Error: {0}", ex.Message ) );
}