Logger<T>.ILogger.IsEnabled(LogLevel) Method

Definition

Checks if the given logLevel is enabled.

 virtual bool Microsoft.Extensions.Logging.ILogger.IsEnabled(Microsoft::Extensions::Logging::LogLevel logLevel) = Microsoft::Extensions::Logging::ILogger::IsEnabled;
bool ILogger.IsEnabled (Microsoft.Extensions.Logging.LogLevel logLevel);
abstract member Microsoft.Extensions.Logging.ILogger.IsEnabled : Microsoft.Extensions.Logging.LogLevel -> bool
override this.Microsoft.Extensions.Logging.ILogger.IsEnabled : Microsoft.Extensions.Logging.LogLevel -> bool
Function IsEnabled (logLevel As LogLevel) As Boolean Implements ILogger.IsEnabled

Parameters

logLevel
LogLevel

level to be checked.

Returns

true if enabled; false otherwise.

Implements

Applies to