EventLogTraceListener.WriteLine Method

Writes a message to the event log for this instance.

Name Description
EventLogTraceListener.WriteLine (Object) Writes the value of the object's ToString method to the listener you create when you implement the TraceListener class, followed by a line terminator.
EventLogTraceListener.WriteLine (String) Writes a message to the event log for this instance.
EventLogTraceListener.WriteLine (Object, String) Writes a category name and the value of the object's ToString method to the listener you create when you implement the TraceListener class, followed by a line terminator.
EventLogTraceListener.WriteLine (String, String) Writes a category name and a message to the listener you create when you implement the TraceListener class, followed by a line terminator.

Community Additions

ADD
Show: