PostSharp / / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Backends.​Trace / Trace­Logging­Backend / Trace­Logging­Backend
Open sandbox

Constructor TraceLoggingBackend


Initializes a new TraceLoggingBackend that logs into Trace (the static trace source).

public TraceLoggingBackend()

TraceLoggingBackend(IEnumerable<TraceListener>, String)

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

public TraceLoggingBackend(IEnumerable<TraceListener> listeners, string finalTraceSourceName = "App")
Type Name Description
IEnumerable<TraceListener> listeners

PostSharp log records will be sent to these trace listeners.

String finalTraceSourceName

This name will be presented to all listeners as the "event source" of all messages. The default event source name is "App".