FakeLogger.ControlLevel(LogLevel, Boolean) 方法

定义

控制日志级别的启用状态。

public:
 void ControlLevel(Microsoft::Extensions::Logging::LogLevel logLevel, bool enabled);
public void ControlLevel (Microsoft.Extensions.Logging.LogLevel logLevel, bool enabled);
member this.ControlLevel : Microsoft.Extensions.Logging.LogLevel * bool -> unit
Public Sub ControlLevel (logLevel As LogLevel, enabled As Boolean)

参数

logLevel
LogLevel

要影响的日志级别。

enabled
Boolean

日志级别是否已启用。

适用于