Open sandboxFocus

Constructor DiagnosticSourceCollectingListener

DiagnosticSourceCollectingListener(string[], LogLevel)

Initializes a new DiagnosticSourceCollectingListener and specifies the list of sources to follow.

Declaration
public DiagnosticSourceCollectingListener(string[] listenersToFollow, LogLevel logLevel = LogLevel.Debug)
Parameters
Type Name Description
string[] listenersToFollow

The list of listeners to follow.

LogLevel logLevel

The LogLevel of messages and activities created from this DiagnosticSourceCollectingListener.

DiagnosticSourceCollectingListener(LogLevel)

Initializes a new DiagnosticSourceCollectingListener and subscribes to all sources.

Declaration
public DiagnosticSourceCollectingListener(LogLevel logLevel = LogLevel.Debug)
Parameters
Type Name Description
LogLevel logLevel

The LogLevel of messages and activities created from this DiagnosticSourceCollectingListener.