LoggingBuilderExtensions.SetMinimumLevel(ILoggingBuilder, LogLevel) 方法

定义

设置记录日志消息的最低 LogLevel 要求。

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ SetMinimumLevel(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Microsoft::Extensions::Logging::LogLevel level);
public static Microsoft.Extensions.Logging.ILoggingBuilder SetMinimumLevel (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Microsoft.Extensions.Logging.LogLevel level);
static member SetMinimumLevel : Microsoft.Extensions.Logging.ILoggingBuilder * Microsoft.Extensions.Logging.LogLevel -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function SetMinimumLevel (builder As ILoggingBuilder, level As LogLevel) As ILoggingBuilder

参数

builder
ILoggingBuilder

要设置最低级别的 ILoggingBuilder

level
LogLevel

要设置为最小值的 LogLevel

返回

ILoggingBuilder,以便可以链接其他调用。

适用于