PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Trace Namespace / Trace­Logging­Backend Class / Trace­Logging­Backend Constructor / Trace­Logging­Backend Constructor (IEnumerable(Trace­Listener), String)

TraceLoggingBackend Constructor (IEnumerable<TraceListener>, String)

Initializes a new TraceLoggingBackend that logs directly into the given trace listeners.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Trace
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Tracing (in PostSharp.Patterns.Diagnostics.Backends.Tracing.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
public TraceLoggingBackend(
	IEnumerable<TraceListener> listeners,
	string finalTraceSourceName = "App"
)

Parameters

listeners
Type: System.Collections.Generic.IEnumerable<TraceListener>
PostSharp log records will be sent to these trace listeners.
finalTraceSourceName (Optional)
Type: System.String
This name will be presented to all listeners as the "event source" of all messages. The default event source name is "App".
See Also