PostSharp 6.10 / / Post­Sharp Documentation / 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

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

The LoggingAbstractSource type exposes the following members.

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 Obsolete.
Gets the Type that this source is associated with. This may be null if the source is based on a logger name.
Public methodGetLocalState
Gets the LoggingSourceLocalState resolved for the current execution context. This method is used by generated code.
Public methodIsEnabled
Determines whether logging is enabled for a given LogLevel for the current Role and Type.
See Also