PostSharp6.7//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.7.10.0 (6.7.10.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 propertySourceName
Gets the name that this source is associated with. This can't be null.
Public propertyType
Gets the Type that this source is associated with. This may be null if the source is based on a logger name.
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