共用方式為


LoggerFilterRule 建構函式

定義

建立新的 LoggerFilterRule 執行個體。

public:
 LoggerFilterRule(System::String ^ providerName, System::String ^ categoryName, Nullable<Microsoft::Extensions::Logging::LogLevel> logLevel, Func<System::String ^, System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter);
public LoggerFilterRule (string providerName, string categoryName, Microsoft.Extensions.Logging.LogLevel? logLevel, Func<string,string,Microsoft.Extensions.Logging.LogLevel,bool> filter);
public LoggerFilterRule (string? providerName, string? categoryName, Microsoft.Extensions.Logging.LogLevel? logLevel, Func<string?,string?,Microsoft.Extensions.Logging.LogLevel,bool>? filter);
new Microsoft.Extensions.Logging.LoggerFilterRule : string * string * Nullable<Microsoft.Extensions.Logging.LogLevel> * Func<string, string, Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.LoggerFilterRule
Public Sub New (providerName As String, categoryName As String, logLevel As Nullable(Of LogLevel), filter As Func(Of String, String, LogLevel, Boolean))

參數

providerName
String

要在此篩選規則中使用的提供者名稱。

categoryName
String

要在此篩選規則中使用的類別名稱。

logLevel
Nullable<LogLevel>

要在此篩選規則中使用的 LogLevel

filter
Func<String,String,LogLevel,Boolean>

要套用的篩選條件。

適用於