BaseCollectingTraceListener Class
Base class for TraceListeners that redirect trace events to PostSharp.
Inheritance
Namespace: PostSharp.Patterns.Diagnostics.Backends.Trace
Assembly: PostSharp.Patterns.Diagnostics.Backends.Tracing.dll
Syntax
public abstract class BaseCollectingTraceListener : TraceListener
Constructors
Name | Description |
---|---|
BaseCollectingTraceListener() |
Methods
Name | Description |
---|---|
ConvertLevel(TraceEventType) | Gets the PostSharp log level that corresponds to the given |
Fail(String, String) | Emits an error message and a detailed error message to the listener you create when you implement the TraceListener class. |
TraceCore(String, TraceEventType, String) | Sends an event to PostSharp where you provide the |
TraceCore(String, TraceEventType, String, Object[]) | Sends an event to PostSharp where the text is provided as a formatting string and an array of parameters. |
TraceData(TraceEventCache, String, TraceEventType, Int32, Object) | Writes trace information, a data object and event information to the listener specific output. |
TraceData(TraceEventCache, String, TraceEventType, Int32, Object[]) | Writes trace information, an array of data objects and event information to the listener specific output. |
TraceEvent(TraceEventCache, String, TraceEventType, Int32) | Writes trace and event information to the listener specific output. |
TraceEvent(TraceEventCache, String, TraceEventType, Int32, String) | Writes trace information, a message, and event information to the listener specific output. |
TraceEvent(TraceEventCache, String, TraceEventType, Int32, String, Object[]) | Writes trace information, a formatted array of objects and event information to the listener specific output. |
Write(String) | When overridden in a derived class, writes the specified message to the listener you create in the derived class. |
WriteLine(String) | When overridden in a derived class, writes a message to the listener you create in the derived class, followed by a line terminator. |