共用方式為


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

要在其中設定最低層級的記錄產生器。

level
LogLevel

其中一個列舉值,設定為最小記錄嚴重性層級。

傳回

已設定最低記錄層級的記錄產生器。

適用於