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 (Log­Level)

DiagnosticSourceCollectingListener Constructor (LogLevel)

Initializes a new DiagnosticSourceCollectingListener and subscribes to all sources.

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(
	LogLevel logLevel = LogLevel.Debug
)

Parameters

logLevel (Optional)
Type: PostSharp.Patterns.Diagnostics.LogLevel
The LogLevel of messages and activities created from this DiagnosticSourceCollectingListener.
See Also