Compartilhar via


LoggerFilterRule Construtor

Definição

Cria uma nova instância 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))

Parâmetros

providerName
String

O nome do provedor a ser usado nesta regra de filtro.

categoryName
String

O nome da categoria a ser usada nesta regra de filtro.

logLevel
Nullable<LogLevel>

O LogLevel a ser usado nesta regra de filtro.

filter
Func<String,String,LogLevel,Boolean>

O filtro a ser aplicado.

Aplica-se a