PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​Backends.​Trace­SourceTrace­Source­Collecting­Trace­Listener
Open sandboxFocus

Class TraceSourceCollectingTraceListener

This is a TraceListener that redirects all trace events to PostSharp, using the name of the event source that created the event as the name of the log source to be sent to PostSharp.

Namespace: PostSharp.Patterns.Diagnostics.Backends.TraceSource
Assembly: PostSharp.Patterns.Diagnostics.Backends.Tracing.dll
public class TraceSourceCollectingTraceListener : BaseCollectingTraceListener


Name Description
TraceSourceCollectingTraceListener() PostSharp.Patterns.Diagnostics.Backends.TraceSource.TraceSourceCollectingTraceListener


Name Description
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.