PostSharp6.6//API Reference/Post­Sharp.​Patterns.​Diagnostics.​Backends.​Event­Source Namespace/Post­Sharp­Event­Source Class/Post­Sharp­Event­Source Methods/Post­Sharp­Event­Source.​Is­Enabled Method

PostSharpEventSource.IsEnabled Method

Checks whether logging for the given level is enabled.

Namespace:  PostSharp.Patterns.Diagnostics.Backends.EventSource
Assembly:  PostSharp.Patterns.Diagnostics.Backends.Tracing (in PostSharp.Patterns.Diagnostics.Backends.Tracing.dll) Version: 6.6.10.0 (6.6.10.0)
Syntax
C#
public bool IsEnabled(
	EventLevel level
)

Parameters

level
Type: System.Diagnostics.Tracing.EventLevel

Return Value

Type: Boolean
See Also