Click or drag to resize

LoggerIsEnabled Method

Gets a value indicating whether logging is enabled for the specified level.

Namespace:  NLog
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public bool IsEnabled(
	LogLevel level
)

Parameters

level
Type: NLogLogLevel
Log level to be checked.

Return Value

Type: Boolean
A value of if logging is enabled for the specified level, otherwise it returns .

Implements

ILoggerBase.IsEnabled(LogLevel)
See Also