PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Adapters.​Diagnostic­Source Namespace

PostSharp.Patterns.Diagnostics.Adapters.DiagnosticSource Namespace

This namespace allows you to collect logs emitted by DiagnosticSource into PostSharp Logging.
Classes
  ClassDescription
Public classDiagnosticSourceCollectingListener
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.
Interfaces
  InterfaceDescription
Public interfaceIDiagnosticSourceActivityFilter
Determines how activities from a DiagnosticListener are translated into a PostSharp Logging activity.