PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Source­Local­State Structure / Logging­Source­Local­State Methods / Logging­Source­Local­State.​Is­Enabled Method

LoggingSourceLocalState.IsEnabled Method

Determines whether logging is enabled for a specified LogLevel.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: 6.5.19.0 (6.5.19.0)
Syntax
C#
public bool IsEnabled(
	LogLevel level
)

Parameters

level
Type: PostSharp.Patterns.Diagnostics.LogLevel
A LogLevel.

Return Value

Type: Boolean
See Also