NullLogger.IsEnabled(LogLevel) 方法

定义

检查给定 logLevel 是否已启用。

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

参数

logLevel
LogLevel

要检查的级别。

返回

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

实现

适用于