PostSharp 2023.0 / / 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: 2023.0.3.0 (2023.0.3.0)
public TraceLoggingBackend(
	IEnumerable<TraceListener> listeners,
	string finalTraceSourceName = "App"


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