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

TraceSourceCollectingTraceListener Class

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.

Inheritance
System.Object
TraceSourceCollectingTraceListener
Namespace: PostSharp.Patterns.Diagnostics.Backends.TraceSource
Assembly: PostSharp.Patterns.Diagnostics.Backends.Tracing.dll
Syntax
public class TraceSourceCollectingTraceListener : BaseCollectingTraceListener

Constructors

Name Description
TraceSourceCollectingTraceListener()

Methods

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.