PostSharp6.4/API Reference/Post­Sharp.​Patterns.​Diagnostics Namespace/Logging­Abstract­Source Class

LoggingAbstractSource Class

Exposes the current LoggingTypeSource for a given role and Type.
Inheritance Hierarchy
System.Object
  PostSharp.Patterns.Diagnostics.LoggingAbstractSource

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.4.3.0 (6.4.3.0)
Syntax
C#
public sealed class LoggingAbstractSource : ILogger2, 
	ILogger, ILoggerExceptionHandler

The LoggingAbstractSource type exposes the following members.

Properties
  NameDescription
Public propertyDefaultState
Gets the default LoggingSourceLocalState, i.e. the state when there is the context-local configuration has not been overridden by WithContextLocalConfiguration(LoggingContextLocalConfiguration).
Public propertyRole
Gets the role.
Public propertySource Obsolete.
Gets the LoggingTypeSource currently assigned to Role and Type.
Public propertyType
Gets the Type/
Methods
  NameDescription
Public methodGetLocalState
Gets the LoggingSourceLocalState resolved for the current execution context.
Public methodIsEnabled
Determines whether logging is enabled for a given LogLevel for the current Role and Type.
See Also