Compartir a través de


LoggerFilterRule Constructor

Definition

Creates a new LoggerFilterRule instance.

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);
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))

Parameters

providerName
String

The provider name to use in this filter rule.

categoryName
String

The category name to use in this filter rule.

logLevel
Nullable<LogLevel>

The LogLevel to use in this filter rule.

filter
Func<String,String,LogLevel,Boolean>

The filter to apply.

Applies to