Bagikan melalui


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

Definisi

Memeriksa apakah logLevel yang diberikan diaktifkan.

 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

Parameter

logLevel
LogLevel

tingkat yang akan diperiksa.

Mengembalikan

true jika diaktifkan; false sebaliknya.

Penerapan

Berlaku untuk