FilterLoggingBuilderExtensions.AddFilter FilterLoggingBuilderExtensions.AddFilter FilterLoggingBuilderExtensions.AddFilter FilterLoggingBuilderExtensions.AddFilter Method

Definition

Overloads

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

Adds a log filter to the factory.

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

Adds a log filter to the factory.

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

Adds a log filter to the factory.

AddFilter(ILoggingBuilder, String, LogLevel) AddFilter(ILoggingBuilder, String, LogLevel) AddFilter(ILoggingBuilder, String, LogLevel) AddFilter(ILoggingBuilder, String, LogLevel)

Adds a log filter to the factory.

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

Adds a log filter to the factory.

AddFilter(LoggerFilterOptions, String, LogLevel) AddFilter(LoggerFilterOptions, String, LogLevel) AddFilter(LoggerFilterOptions, String, LogLevel) AddFilter(LoggerFilterOptions, String, LogLevel)

Adds a log filter to the factory.

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

Adds a log filter to the factory.

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

Adds a log filter to the factory.

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

Adds a log filter to the factory.

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

Adds a log filter to the factory.

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

Adds a log filter for the given ILoggerProvider.

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

Adds a log filter for the given ILoggerProvider.

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

Adds a log filter for the given ILoggerProvider.

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

Adds a log filter for the given ILoggerProvider.

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

Adds a log filter for the given ILoggerProvider.

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

Adds a log filter for the given ILoggerProvider.

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

Adds a log filter for the given ILoggerProvider.

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

Adds a log filter for the given ILoggerProvider.

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

Adds a log filter to the factory.

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

Parameters

levelFilter
Func<LogLevel,Boolean>

The filter to be added.

Returns

The ILoggingBuilder so that additional calls can be chained.

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

Adds a log filter to the factory.

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

Parameters

category
String String String String

The category to filter.

levelFilter
Func<LogLevel,Boolean>

The filter function to apply.

Returns

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

Adds a log filter to the factory.

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

Parameters

category
String String String String

The category to filter.

levelFilter
Func<LogLevel,Boolean>

The filter function to apply.

Returns

The ILoggingBuilder so that additional calls can be chained.

AddFilter(ILoggingBuilder, String, LogLevel) AddFilter(ILoggingBuilder, String, LogLevel) AddFilter(ILoggingBuilder, String, LogLevel) AddFilter(ILoggingBuilder, String, LogLevel)

Adds a log filter to the factory.

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

Parameters

category
String String String String

The category to filter.

level
LogLevel LogLevel LogLevel LogLevel

The level to filter.

Returns

The ILoggingBuilder so that additional calls can be chained.

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

Adds a log filter to the factory.

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

Parameters

filter
Func<String,String,LogLevel,Boolean>

The filter function to apply.

Returns

AddFilter(LoggerFilterOptions, String, LogLevel) AddFilter(LoggerFilterOptions, String, LogLevel) AddFilter(LoggerFilterOptions, String, LogLevel) AddFilter(LoggerFilterOptions, String, LogLevel)

Adds a log filter to the factory.

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

Parameters

category
String String String String

The category to filter.

level
LogLevel LogLevel LogLevel LogLevel

The level to filter.

Returns

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

Adds a log filter to the factory.

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

Parameters

levelFilter
Func<LogLevel,Boolean>

The filter function to apply.

Returns

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

Adds a log filter to the factory.

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

Parameters

filter
Func<String,String,LogLevel,Boolean>

The filter to be added.

Returns

The ILoggingBuilder so that additional calls can be chained.

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

Adds a log filter to the factory.

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

Parameters

categoryLevelFilter
Func<String,LogLevel,Boolean>

The filter to be added.

Returns

The ILoggingBuilder so that additional calls can be chained.

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

Adds a log filter to the factory.

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

Parameters

categoryLevelFilter
Func<String,LogLevel,Boolean>

The filter function to apply.

Returns

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

Adds a log filter for the given ILoggerProvider.

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

Type Parameters

T

The ILoggerProvider which this filter will be added for.

Parameters

category
String String String String

The category to filter.

level
LogLevel LogLevel LogLevel LogLevel

The level to filter.

Returns

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

Adds a log filter for the given ILoggerProvider.

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

Type Parameters

T

The ILoggerProvider which this filter will be added for.

Parameters

levelFilter
Func<LogLevel,Boolean>

The filter to be added.

Returns

The ILoggingBuilder so that additional calls can be chained.

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

Adds a log filter for the given ILoggerProvider.

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

Type Parameters

T

The ILoggerProvider which this filter will be added for.

Parameters

categoryLevelFilter
Func<String,LogLevel,Boolean>

The filter to be added.

Returns

The ILoggingBuilder so that additional calls can be chained.

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

Adds a log filter for the given ILoggerProvider.

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

Type Parameters

T

The ILoggerProvider which this filter will be added for.

Parameters

levelFilter
Func<LogLevel,Boolean>

The filter function to apply.

Returns

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

Adds a log filter for the given ILoggerProvider.

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

Type Parameters

T

The ILoggerProvider which this filter will be added for.

Parameters

categoryLevelFilter
Func<String,LogLevel,Boolean>

The filter function to apply.

Returns

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

Adds a log filter for the given ILoggerProvider.

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

Type Parameters

T

The ILoggerProvider which this filter will be added for.

Parameters

category
String String String String

The category to filter.

level
LogLevel LogLevel LogLevel LogLevel

The level to filter.

Returns

The ILoggingBuilder so that additional calls can be chained.

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

Adds a log filter for the given ILoggerProvider.

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

Type Parameters

T

The ILoggerProvider which this filter will be added for.

Parameters

category
String String String String

The category to filter.

levelFilter
Func<LogLevel,Boolean>

The filter function to apply.

Returns

The ILoggingBuilder so that additional calls can be chained.

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

Adds a log filter for the given ILoggerProvider.

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

Type Parameters

T

The ILoggerProvider which this filter will be added for.

Parameters

category
String String String String

The category to filter.

levelFilter
Func<LogLevel,Boolean>

The filter function to apply.

Returns

Applies to