Open sandboxFocus

Constructor TraceLoggingBackend

TraceLoggingBackend()

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

Declaration
public TraceLoggingBackend()

TraceLoggingBackend(IEnumerable<TraceListener>, string)

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

Declaration
public TraceLoggingBackend(IEnumerable<TraceListener> listeners, string finalTraceSourceName = "App")
Parameters
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".