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

Definice

Zkontroluje, jestli je daná logLevel povolená.

 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

Parametry

logLevel
LogLevel

úroveň, která má být kontrolována.

Návraty

true, pokud je povoleno; false jinak.

Implementuje

Platí pro