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

TraceLoggingTypeSource.IsBackendEnabled Method

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

Namespace:  PostSharp.Patterns.Diagnostics.Backends.Trace
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Tracing (in PostSharp.Patterns.Diagnostics.Backends.Tracing.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
protected override 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