PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Source­Local­State Structure

LoggingSourceLocalState Structure

Stores the state of a LoggingAbstractSource for the current execution context.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
public readonly struct LoggingSourceLocalState

The LoggingSourceLocalState type exposes the following members.

Properties
  NameDescription
Public propertyBackend
Gets the resolved LoggingBackend.
Public propertySource
Gets the resolved LoggingTypeSource.
Methods
  NameDescription
Public methodIsEnabled
Determines whether logging is enabled for a specified LogLevel.
See Also