ILogger.IsEnabled(LogLevel) 方法

定义

检查是否已启用给定 logLevel

public:
 bool IsEnabled(Microsoft::Extensions::Logging::LogLevel logLevel);
public bool IsEnabled (Microsoft.Extensions.Logging.LogLevel logLevel);
abstract member IsEnabled : Microsoft.Extensions.Logging.LogLevel -> bool
Public Function IsEnabled (logLevel As LogLevel) As Boolean

参数

logLevel
LogLevel

要检查的级别。

返回

如果已启用,则为 true;否则为 false

适用于