FakeLogger.IsEnabled(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

实现

适用于