Explanation/Reference:
Explanation:
XmlWriterTraceListener

Directs tracing or debugging output as XML-encoded data to a TextWriter or to a Stream, such as a FileStream.
TraceListener.TraceEvent Method (TraceEventCache, String, TraceEventType, Int32)

Writes trace and event information to the listener specific output.
Syntax:
[ ComVisibleAttribute(false)]
public virtual void TraceEvent(
TraceEventCache eventCache,
string source,
TraceEventType eventType,
int id
)