11 instantiations of LoggerFilterOptions
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Telemetry.Tests (9)
92 references to LoggerFilterOptions
Aspire.Dashboard.Tests (3)
Aspire.Hosting (1)
ClientSample (1)
Microsoft.Extensions.Logging (52)
FilterLoggingBuilderExtensions.cs (35)
109public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, Func<string?, string?, LogLevel, bool> filter) =>
115/// <param name="builder">The <see cref="LoggerFilterOptions"/> to add the filter to.</param>
117/// <returns>The <see cref="LoggerFilterOptions"/> so that additional calls can be chained.</returns>
118public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, Func<string?, LogLevel, bool> categoryLevelFilter) =>
124/// <param name="builder">The <see cref="LoggerFilterOptions"/> to add the filter to.</param>
127/// <returns>The <see cref="LoggerFilterOptions"/> so that additional calls can be chained.</returns>
128public static LoggerFilterOptions AddFilter<T>(this LoggerFilterOptions builder, Func<string?, LogLevel, bool> categoryLevelFilter) where T : ILoggerProvider =>
134/// <param name="builder">The <see cref="LoggerFilterOptions"/> to add the filter to.</param>
136/// <returns>The <see cref="LoggerFilterOptions"/> so that additional calls can be chained.</returns>
137public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, Func<LogLevel, bool> levelFilter) =>
143/// <param name="builder">The <see cref="LoggerFilterOptions"/> to add the filter to.</param>
146/// <returns>The <see cref="LoggerFilterOptions"/> so that additional calls can be chained.</returns>
147public static LoggerFilterOptions AddFilter<T>(this LoggerFilterOptions builder, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider =>
153/// <param name="builder">The <see cref="LoggerFilterOptions"/> to add the filter to.</param>
156/// <returns>The <see cref="LoggerFilterOptions"/> so that additional calls can be chained.</returns>
157public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, LogLevel level) =>
163/// <param name="builder">The <see cref="LoggerFilterOptions"/> to add the filter to.</param>
167/// <returns>The <see cref="LoggerFilterOptions"/> so that additional calls can be chained.</returns>
168public static LoggerFilterOptions AddFilter<T>(this LoggerFilterOptions builder, string? category, LogLevel level) where T : ILoggerProvider =>
174/// <param name="builder">The <see cref="LoggerFilterOptions"/> to add the filter to.</param>
177/// <returns>The <see cref="LoggerFilterOptions"/> so that additional calls can be chained.</returns>
178public static LoggerFilterOptions AddFilter(this LoggerFilterOptions builder, string? category, Func<LogLevel, bool> levelFilter) =>
189public static LoggerFilterOptions AddFilter<T>(this LoggerFilterOptions builder, string? category, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider =>
192private static ILoggingBuilder ConfigureFilter(this ILoggingBuilder builder, Action<LoggerFilterOptions> configureOptions)
198private static LoggerFilterOptions AddRule(LoggerFilterOptions options,
LoggerFactory.cs (7)
27private LoggerFilterOptions _filterOptions;
51public LoggerFactory(IEnumerable<ILoggerProvider> providers, LoggerFilterOptions filterOptions) : this(providers, new StaticFilterOptionsMonitor(filterOptions))
60public LoggerFactory(IEnumerable<ILoggerProvider> providers, IOptionsMonitor<LoggerFilterOptions> filterOption) : this(providers, filterOption, null)
70public LoggerFactory(IEnumerable<ILoggerProvider> providers, IOptionsMonitor<LoggerFilterOptions> filterOption, IOptions<LoggerFactoryOptions>? options) : this(providers, filterOption, options, null)
81public LoggerFactory(IEnumerable<ILoggerProvider> providers, IOptionsMonitor<LoggerFilterOptions> filterOption, IOptions<LoggerFactoryOptions>? options = null, IExternalScopeProvider? scopeProvider = null)
121private void RefreshFilters(LoggerFilterOptions filterOptions)
331public LoggerFilterOptions FilterOptions => loggerFactory._filterOptions;
Microsoft.Extensions.Logging.AzureAppServices (6)
Microsoft.Extensions.Logging.Configuration (8)
Microsoft.Extensions.Logging.EventSource (5)
Microsoft.Extensions.Telemetry (4)
Microsoft.Extensions.Telemetry.Tests (12)