DiagnosticSourceCollectingListener Class |
Subscribes to DiagnosticListener and emits messages and activities to PostSharp Logging. After calling the constructor,
you must call the FollowActivity(String, IDiagnosticSourceActivityFilter)
and then Subscribe() methods to start listening to events.
System.Object
PostSharp.Patterns.Diagnostics.Adapters.DiagnosticSource.DiagnosticSourceCollectingListener
PostSharp.Patterns.Diagnostics.Adapters.DiagnosticSource.DiagnosticSourceCollectingListener
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)
C#
public sealed class DiagnosticSourceCollectingListener : IObserver<DiagnosticListener>, IDisposable
The DiagnosticSourceCollectingListener type exposes the following members.
Name | Description | |
---|---|---|
DiagnosticSourceCollectingListener(LogLevel) |
Initializes a new DiagnosticSourceCollectingListener and subscribes to all sources.
| |
DiagnosticSourceCollectingListener(String[], LogLevel) |
Initializes a new DiagnosticSourceCollectingListener and specifies the list of sources to follow.
|
Name | Description | |
---|---|---|
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
FollowActivity |
Follows a specific activity.
| |
Subscribe |
Subscribes to event sources.
|