Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Type­Source Class / Logging­Type­Source Methods / Logging­Type­Source.​Is­Backend­Enabled Method

LoggingTypeSource.IsBackendEnabled Method

Checks whether logging is enabled in the back-end for the given level.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.0.24.0 (6.0.24.0)
Syntax
C#
protected abstract bool IsBackendEnabled(
	LogLevel level
)

Parameters

level
Type: PostSharp.Patterns.Diagnostics.LogLevel

Return Value

Type: Boolean
Remarks

The result of this method is cached. To invalidate the cache, call the Refresh() method.

See Also