Open sandboxFocus

Class BaseCollectingTraceListener

Base class for TraceListeners that redirect trace events to PostSharp.

Implements
Namespace: PostSharp.Patterns.Diagnostics.Backends.Trace
Assembly: PostSharp.Patterns.Diagnostics.Backends.Tracing.dll
Syntax
public abstract class BaseCollectingTraceListener : TraceListener, IDisposable

Constructors

Name Description
BaseCollectingTraceListener()

Methods

Name Description
ConvertLevel(TraceEventType)

Gets the PostSharp log level that corresponds to the given eventType.

Fail(string, string)
TraceCore(string, TraceEventType, string)

Sends an event to PostSharp where you provide the text in its final formatted form.

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, int, object)
TraceData(TraceEventCache, string, TraceEventType, int, params object[])
TraceEvent(TraceEventCache, string, TraceEventType, int)
TraceEvent(TraceEventCache, string, TraceEventType, int, string)
TraceEvent(TraceEventCache, string, TraceEventType, int, string, params object[])
Write(string)
WriteLine(string)