Provides the abstract (in Visual Basic MustInherit) base class for the listeners who monitor trace and debug output.
Object
TraceListener
[Visual Basic] MustInherit Public Class TraceListener [C#] public abstract class TraceListener [C++] public __gc __abstract class TraceListener [JScript] public abstract class TraceListener
Notes to Inheritors: Inherit from this class to implement a custom listener for the Debug and Trace classes. At a minimum, you must override the Write and WriteLine methods. Additionally, you can override the Close and Flush methods.
For examples of how to implement a TraceListener, see the DefaultTraceListener and TextWriterTraceListener classes.
Namespace: System.Diagnostics
Assembly: System.dll
TraceListener Members | System.Diagnostics Namespace | DefaultTraceListener | TextWriterTraceListener | Debug | Trace