PostSharp 2023.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Diagnostic­Source Namespace / Diagnostic­Source­Collecting­Listener Class / Diagnostic­Source­Collecting­Listener Constructor / Diagnostic­Source­Collecting­Listener Constructor (String[], Log­Level)

DiagnosticSourceCollectingListener Constructor (String[], LogLevel)

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

Namespace:  PostSharp.Patterns.Diagnostics.Adapters.DiagnosticSource
Assembly:  PostSharp.Patterns.Diagnostics.Adapters.DiagnosticSource (in PostSharp.Patterns.Diagnostics.Adapters.DiagnosticSource.dll) Version: 2023.0.3.0 (2023.0.3.0)
Syntax
C#
public DiagnosticSourceCollectingListener(
	string[] listenersToFollow,
	LogLevel logLevel = LogLevel.Debug
)

Parameters

listenersToFollow
Type: System.String[]
The list of listeners to follow.
logLevel (Optional)
Type: PostSharp.Patterns.Diagnostics.LogLevel
The LogLevel of messages and activities created from this DiagnosticSourceCollectingListener.
See Also