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

LoggingTypeSource.IsEnabled Method

Determines whether logging is enabled for the given LogLevel.

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

Parameters

level
Type: PostSharp.Patterns.Diagnostics.LogLevel

Return Value

Type: Boolean
See Also