Sdílet prostřednictvím


FilterLoggingBuilderExtensions.AddFilter Metoda

Definice

Přetížení

AddFilter(ILoggingBuilder, Func<LogLevel,Boolean>)

Přidá filtr protokolu do továrny.

AddFilter(LoggerFilterOptions, String, Func<LogLevel,Boolean>)

Přidá filtr protokolu do továrny.

AddFilter(ILoggingBuilder, String, Func<LogLevel,Boolean>)

Přidá filtr protokolu do továrny.

AddFilter(ILoggingBuilder, String, LogLevel)

Přidá filtr protokolu do továrny.

AddFilter(LoggerFilterOptions, Func<String,String,LogLevel,Boolean>)

Přidá filtr protokolu do továrny.

AddFilter(LoggerFilterOptions, String, LogLevel)

Přidá filtr protokolu do továrny.

AddFilter(LoggerFilterOptions, Func<LogLevel,Boolean>)

Přidá filtr protokolu do továrny.

AddFilter(ILoggingBuilder, Func<String,String,LogLevel,Boolean>)

Přidá filtr protokolu do továrny.

AddFilter(ILoggingBuilder, Func<String,LogLevel,Boolean>)

Přidá filtr protokolu do továrny.

AddFilter(LoggerFilterOptions, Func<String,LogLevel,Boolean>)

Přidá filtr protokolu do továrny.

AddFilter<T>(LoggerFilterOptions, String, LogLevel)

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

AddFilter<T>(ILoggingBuilder, Func<LogLevel,Boolean>)

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

AddFilter<T>(ILoggingBuilder, Func<String,LogLevel,Boolean>)

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

AddFilter<T>(LoggerFilterOptions, Func<LogLevel,Boolean>)

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

AddFilter<T>(LoggerFilterOptions, Func<String,LogLevel,Boolean>)

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

AddFilter<T>(ILoggingBuilder, String, LogLevel)

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

AddFilter<T>(ILoggingBuilder, String, Func<LogLevel,Boolean>)

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

AddFilter<T>(LoggerFilterOptions, String, Func<LogLevel,Boolean>)

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

AddFilter(ILoggingBuilder, Func<LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu do továrny.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddFilter(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Func<Microsoft::Extensions::Logging::LogLevel, bool> ^ levelFilter);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Func<Microsoft.Extensions.Logging.LogLevel,bool> levelFilter);
static member AddFilter : Microsoft.Extensions.Logging.ILoggingBuilder * Func<Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddFilter (builder As ILoggingBuilder, levelFilter As Func(Of LogLevel, Boolean)) As ILoggingBuilder

Parametry

builder
ILoggingBuilder

Filtr ILoggingBuilder se přidá do.

levelFilter
Func<LogLevel,Boolean>

Filtr, který se má přidat.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter(LoggerFilterOptions, String, Func<LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu do továrny.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::LoggerFilterOptions ^ AddFilter(Microsoft::Extensions::Logging::LoggerFilterOptions ^ builder, System::String ^ category, Func<Microsoft::Extensions::Logging::LogLevel, bool> ^ levelFilter);
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, string category, Func<Microsoft.Extensions.Logging.LogLevel,bool> levelFilter);
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, string? category, Func<Microsoft.Extensions.Logging.LogLevel,bool> levelFilter);
static member AddFilter : Microsoft.Extensions.Logging.LoggerFilterOptions * string * Func<Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.LoggerFilterOptions
<Extension()>
Public Function AddFilter (builder As LoggerFilterOptions, category As String, levelFilter As Func(Of LogLevel, Boolean)) As LoggerFilterOptions

Parametry

builder
LoggerFilterOptions

Filtr ILoggingBuilder se přidá do.

category
String

Kategorie, která se má filtrovat.

levelFilter
Func<LogLevel,Boolean>

Funkce filtru, která se má použít.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter(ILoggingBuilder, String, Func<LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu do továrny.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddFilter(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, System::String ^ category, Func<Microsoft::Extensions::Logging::LogLevel, bool> ^ levelFilter);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter (this Microsoft.Extensions.Logging.ILoggingBuilder builder, string category, Func<Microsoft.Extensions.Logging.LogLevel,bool> levelFilter);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter (this Microsoft.Extensions.Logging.ILoggingBuilder builder, string? category, Func<Microsoft.Extensions.Logging.LogLevel,bool> levelFilter);
static member AddFilter : Microsoft.Extensions.Logging.ILoggingBuilder * string * Func<Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddFilter (builder As ILoggingBuilder, category As String, levelFilter As Func(Of LogLevel, Boolean)) As ILoggingBuilder

Parametry

builder
ILoggingBuilder

Filtr ILoggingBuilder se přidá do.

category
String

Kategorie, která se má filtrovat.

levelFilter
Func<LogLevel,Boolean>

Funkce filtru, která se má použít.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter(ILoggingBuilder, String, LogLevel)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu do továrny.

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

Parametry

builder
ILoggingBuilder

Filtr ILoggingBuilder se přidá do.

category
String

Kategorie, která se má filtrovat.

level
LogLevel

Úroveň, která se má filtrovat.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter(LoggerFilterOptions, Func<String,String,LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu do továrny.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::LoggerFilterOptions ^ AddFilter(Microsoft::Extensions::Logging::LoggerFilterOptions ^ builder, Func<System::String ^, System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter);
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, Func<string,string,Microsoft.Extensions.Logging.LogLevel,bool> filter);
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, Func<string?,string?,Microsoft.Extensions.Logging.LogLevel,bool> filter);
static member AddFilter : Microsoft.Extensions.Logging.LoggerFilterOptions * Func<string, string, Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.LoggerFilterOptions
<Extension()>
Public Function AddFilter (builder As LoggerFilterOptions, filter As Func(Of String, String, LogLevel, Boolean)) As LoggerFilterOptions

Parametry

builder
LoggerFilterOptions

Filtr ILoggingBuilder se přidá do.

filter
Func<String,String,LogLevel,Boolean>

Funkce filtru, která se má použít.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter(LoggerFilterOptions, String, LogLevel)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu do továrny.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::LoggerFilterOptions ^ AddFilter(Microsoft::Extensions::Logging::LoggerFilterOptions ^ builder, System::String ^ category, Microsoft::Extensions::Logging::LogLevel level);
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, string category, Microsoft.Extensions.Logging.LogLevel level);
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, string? category, Microsoft.Extensions.Logging.LogLevel level);
static member AddFilter : Microsoft.Extensions.Logging.LoggerFilterOptions * string * Microsoft.Extensions.Logging.LogLevel -> Microsoft.Extensions.Logging.LoggerFilterOptions
<Extension()>
Public Function AddFilter (builder As LoggerFilterOptions, category As String, level As LogLevel) As LoggerFilterOptions

Parametry

builder
LoggerFilterOptions

Filtr ILoggingBuilder se přidá do.

category
String

Kategorie, která se má filtrovat.

level
LogLevel

Úroveň, která se má filtrovat.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter(LoggerFilterOptions, Func<LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu do továrny.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::LoggerFilterOptions ^ AddFilter(Microsoft::Extensions::Logging::LoggerFilterOptions ^ builder, Func<Microsoft::Extensions::Logging::LogLevel, bool> ^ levelFilter);
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, Func<Microsoft.Extensions.Logging.LogLevel,bool> levelFilter);
static member AddFilter : Microsoft.Extensions.Logging.LoggerFilterOptions * Func<Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.LoggerFilterOptions
<Extension()>
Public Function AddFilter (builder As LoggerFilterOptions, levelFilter As Func(Of LogLevel, Boolean)) As LoggerFilterOptions

Parametry

builder
LoggerFilterOptions

Filtr ILoggingBuilder se přidá do.

levelFilter
Func<LogLevel,Boolean>

Funkce filtru, která se má použít.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter(ILoggingBuilder, Func<String,String,LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu do továrny.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddFilter(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Func<System::String ^, System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ filter);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Func<string,string,Microsoft.Extensions.Logging.LogLevel,bool> filter);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Func<string?,string?,Microsoft.Extensions.Logging.LogLevel,bool> filter);
static member AddFilter : Microsoft.Extensions.Logging.ILoggingBuilder * Func<string, string, Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddFilter (builder As ILoggingBuilder, filter As Func(Of String, String, LogLevel, Boolean)) As ILoggingBuilder

Parametry

builder
ILoggingBuilder

Filtr ILoggingBuilder se přidá do.

filter
Func<String,String,LogLevel,Boolean>

Filtr, který se má přidat.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter(ILoggingBuilder, Func<String,LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu do továrny.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddFilter(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ categoryLevelFilter);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> categoryLevelFilter);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Func<string?,Microsoft.Extensions.Logging.LogLevel,bool> categoryLevelFilter);
static member AddFilter : Microsoft.Extensions.Logging.ILoggingBuilder * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.ILoggingBuilder
<Extension()>
Public Function AddFilter (builder As ILoggingBuilder, categoryLevelFilter As Func(Of String, LogLevel, Boolean)) As ILoggingBuilder

Parametry

builder
ILoggingBuilder

Filtr ILoggingBuilder se přidá do.

categoryLevelFilter
Func<String,LogLevel,Boolean>

Filtr, který se má přidat.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter(LoggerFilterOptions, Func<String,LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu do továrny.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::LoggerFilterOptions ^ AddFilter(Microsoft::Extensions::Logging::LoggerFilterOptions ^ builder, Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ categoryLevelFilter);
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> categoryLevelFilter);
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, Func<string?,Microsoft.Extensions.Logging.LogLevel,bool> categoryLevelFilter);
static member AddFilter : Microsoft.Extensions.Logging.LoggerFilterOptions * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.LoggerFilterOptions
<Extension()>
Public Function AddFilter (builder As LoggerFilterOptions, categoryLevelFilter As Func(Of String, LogLevel, Boolean)) As LoggerFilterOptions

Parametry

builder
LoggerFilterOptions

Filtr ILoggingBuilder se přidá do.

categoryLevelFilter
Func<String,LogLevel,Boolean>

Funkce filtru, která se má použít.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter<T>(LoggerFilterOptions, String, LogLevel)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

public:
generic <typename T>
 where T : Microsoft::Extensions::Logging::ILoggerProvider[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::LoggerFilterOptions ^ AddFilter(Microsoft::Extensions::Logging::LoggerFilterOptions ^ builder, System::String ^ category, Microsoft::Extensions::Logging::LogLevel level);
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter<T> (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, string category, Microsoft.Extensions.Logging.LogLevel level) where T : Microsoft.Extensions.Logging.ILoggerProvider;
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter<T> (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, string? category, Microsoft.Extensions.Logging.LogLevel level) where T : Microsoft.Extensions.Logging.ILoggerProvider;
static member AddFilter : Microsoft.Extensions.Logging.LoggerFilterOptions * string * Microsoft.Extensions.Logging.LogLevel -> Microsoft.Extensions.Logging.LoggerFilterOptions (requires 'T :> Microsoft.Extensions.Logging.ILoggerProvider)
<Extension()>
Public Function AddFilter(Of T As ILoggerProvider) (builder As LoggerFilterOptions, category As String, level As LogLevel) As LoggerFilterOptions

Parametry typu

T

Pro ILoggerProvider které bude tento filtr přidán.

Parametry

builder
LoggerFilterOptions

Filtr ILoggingBuilder se přidá do.

category
String

Kategorie, která se má filtrovat.

level
LogLevel

Úroveň, která se má filtrovat.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter<T>(ILoggingBuilder, Func<LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

public:
generic <typename T>
 where T : Microsoft::Extensions::Logging::ILoggerProvider[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddFilter(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Func<Microsoft::Extensions::Logging::LogLevel, bool> ^ levelFilter);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter<T> (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Func<Microsoft.Extensions.Logging.LogLevel,bool> levelFilter) where T : Microsoft.Extensions.Logging.ILoggerProvider;
static member AddFilter : Microsoft.Extensions.Logging.ILoggingBuilder * Func<Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.ILoggingBuilder (requires 'T :> Microsoft.Extensions.Logging.ILoggerProvider)
<Extension()>
Public Function AddFilter(Of T As ILoggerProvider) (builder As ILoggingBuilder, levelFilter As Func(Of LogLevel, Boolean)) As ILoggingBuilder

Parametry typu

T

Pro ILoggerProvider které bude tento filtr přidán.

Parametry

builder
ILoggingBuilder

Filtr ILoggingBuilder se přidá do.

levelFilter
Func<LogLevel,Boolean>

Filtr, který se má přidat.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter<T>(ILoggingBuilder, Func<String,LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

public:
generic <typename T>
 where T : Microsoft::Extensions::Logging::ILoggerProvider[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddFilter(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ categoryLevelFilter);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter<T> (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> categoryLevelFilter) where T : Microsoft.Extensions.Logging.ILoggerProvider;
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter<T> (this Microsoft.Extensions.Logging.ILoggingBuilder builder, Func<string?,Microsoft.Extensions.Logging.LogLevel,bool> categoryLevelFilter) where T : Microsoft.Extensions.Logging.ILoggerProvider;
static member AddFilter : Microsoft.Extensions.Logging.ILoggingBuilder * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.ILoggingBuilder (requires 'T :> Microsoft.Extensions.Logging.ILoggerProvider)
<Extension()>
Public Function AddFilter(Of T As ILoggerProvider) (builder As ILoggingBuilder, categoryLevelFilter As Func(Of String, LogLevel, Boolean)) As ILoggingBuilder

Parametry typu

T

Pro ILoggerProvider které bude tento filtr přidán.

Parametry

builder
ILoggingBuilder

Filtr ILoggingBuilder se přidá do.

categoryLevelFilter
Func<String,LogLevel,Boolean>

Filtr, který se má přidat.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter<T>(LoggerFilterOptions, Func<LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

public:
generic <typename T>
 where T : Microsoft::Extensions::Logging::ILoggerProvider[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::LoggerFilterOptions ^ AddFilter(Microsoft::Extensions::Logging::LoggerFilterOptions ^ builder, Func<Microsoft::Extensions::Logging::LogLevel, bool> ^ levelFilter);
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter<T> (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, Func<Microsoft.Extensions.Logging.LogLevel,bool> levelFilter) where T : Microsoft.Extensions.Logging.ILoggerProvider;
static member AddFilter : Microsoft.Extensions.Logging.LoggerFilterOptions * Func<Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.LoggerFilterOptions (requires 'T :> Microsoft.Extensions.Logging.ILoggerProvider)
<Extension()>
Public Function AddFilter(Of T As ILoggerProvider) (builder As LoggerFilterOptions, levelFilter As Func(Of LogLevel, Boolean)) As LoggerFilterOptions

Parametry typu

T

Pro ILoggerProvider který bude tento filtr přidán.

Parametry

builder
LoggerFilterOptions

Filtr ILoggingBuilder se přidá do.

levelFilter
Func<LogLevel,Boolean>

Funkce filtru, která se má použít.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter<T>(LoggerFilterOptions, Func<String,LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

public:
generic <typename T>
 where T : Microsoft::Extensions::Logging::ILoggerProvider[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::LoggerFilterOptions ^ AddFilter(Microsoft::Extensions::Logging::LoggerFilterOptions ^ builder, Func<System::String ^, Microsoft::Extensions::Logging::LogLevel, bool> ^ categoryLevelFilter);
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter<T> (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, Func<string,Microsoft.Extensions.Logging.LogLevel,bool> categoryLevelFilter) where T : Microsoft.Extensions.Logging.ILoggerProvider;
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter<T> (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, Func<string?,Microsoft.Extensions.Logging.LogLevel,bool> categoryLevelFilter) where T : Microsoft.Extensions.Logging.ILoggerProvider;
static member AddFilter : Microsoft.Extensions.Logging.LoggerFilterOptions * Func<string, Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.LoggerFilterOptions (requires 'T :> Microsoft.Extensions.Logging.ILoggerProvider)
<Extension()>
Public Function AddFilter(Of T As ILoggerProvider) (builder As LoggerFilterOptions, categoryLevelFilter As Func(Of String, LogLevel, Boolean)) As LoggerFilterOptions

Parametry typu

T

Pro ILoggerProvider který bude tento filtr přidán.

Parametry

builder
LoggerFilterOptions

Chcete-li ILoggingBuilder přidat filtr do.

categoryLevelFilter
Func<String,LogLevel,Boolean>

Funkce filtru, která se má použít.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter<T>(ILoggingBuilder, String, LogLevel)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

public:
generic <typename T>
 where T : Microsoft::Extensions::Logging::ILoggerProvider[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddFilter(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, System::String ^ category, Microsoft::Extensions::Logging::LogLevel level);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter<T> (this Microsoft.Extensions.Logging.ILoggingBuilder builder, string category, Microsoft.Extensions.Logging.LogLevel level) where T : Microsoft.Extensions.Logging.ILoggerProvider;
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter<T> (this Microsoft.Extensions.Logging.ILoggingBuilder builder, string? category, Microsoft.Extensions.Logging.LogLevel level) where T : Microsoft.Extensions.Logging.ILoggerProvider;
static member AddFilter : Microsoft.Extensions.Logging.ILoggingBuilder * string * Microsoft.Extensions.Logging.LogLevel -> Microsoft.Extensions.Logging.ILoggingBuilder (requires 'T :> Microsoft.Extensions.Logging.ILoggerProvider)
<Extension()>
Public Function AddFilter(Of T As ILoggerProvider) (builder As ILoggingBuilder, category As String, level As LogLevel) As ILoggingBuilder

Parametry typu

T

Pro ILoggerProvider který bude tento filtr přidán.

Parametry

builder
ILoggingBuilder

Chcete-li ILoggingBuilder přidat filtr do.

category
String

Kategorie, která se má filtrovat.

level
LogLevel

Úroveň, která se má filtrovat.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter<T>(ILoggingBuilder, String, Func<LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

public:
generic <typename T>
 where T : Microsoft::Extensions::Logging::ILoggerProvider[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::ILoggingBuilder ^ AddFilter(Microsoft::Extensions::Logging::ILoggingBuilder ^ builder, System::String ^ category, Func<Microsoft::Extensions::Logging::LogLevel, bool> ^ levelFilter);
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter<T> (this Microsoft.Extensions.Logging.ILoggingBuilder builder, string category, Func<Microsoft.Extensions.Logging.LogLevel,bool> levelFilter) where T : Microsoft.Extensions.Logging.ILoggerProvider;
public static Microsoft.Extensions.Logging.ILoggingBuilder AddFilter<T> (this Microsoft.Extensions.Logging.ILoggingBuilder builder, string? category, Func<Microsoft.Extensions.Logging.LogLevel,bool> levelFilter) where T : Microsoft.Extensions.Logging.ILoggerProvider;
static member AddFilter : Microsoft.Extensions.Logging.ILoggingBuilder * string * Func<Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.ILoggingBuilder (requires 'T :> Microsoft.Extensions.Logging.ILoggerProvider)
<Extension()>
Public Function AddFilter(Of T As ILoggerProvider) (builder As ILoggingBuilder, category As String, levelFilter As Func(Of LogLevel, Boolean)) As ILoggingBuilder

Parametry typu

T

Pro ILoggerProvider který bude tento filtr přidán.

Parametry

builder
ILoggingBuilder

Chcete-li ILoggingBuilder přidat filtr do.

category
String

Kategorie, která se má filtrovat.

levelFilter
Func<LogLevel,Boolean>

Funkce filtru, která se má použít.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro

AddFilter<T>(LoggerFilterOptions, String, Func<LogLevel,Boolean>)

Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs
Zdroj:
FilterLoggingBuilderExtensions.cs

Přidá filtr protokolu pro danou ILoggerProviderhodnotu .

public:
generic <typename T>
 where T : Microsoft::Extensions::Logging::ILoggerProvider[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Logging::LoggerFilterOptions ^ AddFilter(Microsoft::Extensions::Logging::LoggerFilterOptions ^ builder, System::String ^ category, Func<Microsoft::Extensions::Logging::LogLevel, bool> ^ levelFilter);
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter<T> (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, string category, Func<Microsoft.Extensions.Logging.LogLevel,bool> levelFilter) where T : Microsoft.Extensions.Logging.ILoggerProvider;
public static Microsoft.Extensions.Logging.LoggerFilterOptions AddFilter<T> (this Microsoft.Extensions.Logging.LoggerFilterOptions builder, string? category, Func<Microsoft.Extensions.Logging.LogLevel,bool> levelFilter) where T : Microsoft.Extensions.Logging.ILoggerProvider;
static member AddFilter : Microsoft.Extensions.Logging.LoggerFilterOptions * string * Func<Microsoft.Extensions.Logging.LogLevel, bool> -> Microsoft.Extensions.Logging.LoggerFilterOptions (requires 'T :> Microsoft.Extensions.Logging.ILoggerProvider)
<Extension()>
Public Function AddFilter(Of T As ILoggerProvider) (builder As LoggerFilterOptions, category As String, levelFilter As Func(Of LogLevel, Boolean)) As LoggerFilterOptions

Parametry typu

T

Pro ILoggerProvider který bude tento filtr přidán.

Parametry

builder
LoggerFilterOptions

Chcete-li ILoggingBuilder přidat filtr do.

category
String

Kategorie, která se má filtrovat.

levelFilter
Func<LogLevel,Boolean>

Funkce filtru, která se má použít.

Návraty

Aby ILoggingBuilder bylo možné zřetězovat další volání.

Platí pro