59 implementations of ILoggerProvider
Aspire.Dashboard.Components.Tests (2)
Aspire.Dashboard.Tests (2)
Aspire.Hosting.Testing.Tests (2)
Aspire.Hosting.Tests (3)
Aspire.Playground.Tests (2)
BasicTestApp (1)
BuildValidator (1)
Diagnostics.EFCore.FunctionalTests (1)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (1)
InMemory.FunctionalTests (3)
Interop.FunctionalTests (1)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.Hosting.Tests (2)
Microsoft.AspNetCore.Http.Connections.Tests (1)
Microsoft.AspNetCore.InternalTesting (2)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
Microsoft.AspNetCore.SignalR.Tests.Utils (3)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Logging.AzureAppServices (1)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Logging.Debug (1)
Microsoft.Extensions.Logging.EventLog (1)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Logging.TraceSource (1)
Microsoft.Extensions.Telemetry.PerformanceTests (1)
Microsoft.Extensions.Telemetry.Tests (7)
Microsoft.Gen.Logging.Generated.Tests (1)
SampleStartups (1)
Sockets.BindTests (1)
Sockets.FunctionalTests (1)
146 references to ILoggerProvider
Aspire.Components.Common.Tests (2)
Aspire.Dashboard.Components.Tests (4)
Aspire.Dashboard.Tests (4)
Aspire.Hosting.Testing.Tests (4)
Aspire.Hosting.Tests (4)
Aspire.Playground.Tests (4)
Aspire.RabbitMQ.Client.Tests (5)
Aspire.RabbitMQ.Client.v7.Tests (5)
BasicTestApp (1)
Diagnostics.EFCore.FunctionalTests (1)
Microsoft.AspNetCore.Components.WebAssembly.Tests (4)
Microsoft.AspNetCore.DataProtection.Tests (1)
Microsoft.AspNetCore.Hosting.Tests (3)
Microsoft.AspNetCore.InternalTesting (6)
Microsoft.AspNetCore.SignalR.Tests (1)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.AspNetCore.SpaServices.Extensions.Tests (1)
Microsoft.CodeAnalysis.LanguageServer (2)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.Extensions.Diagnostics.Testing (3)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Hosting.Testing.Tests (1)
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (6)
Microsoft.Extensions.Logging (45)
FilterLoggingBuilderExtensions.cs (24)
33/// Adds a log filter for the given <see cref="ILoggerProvider"/>.
37/// <typeparam name="T">The <see cref="ILoggerProvider"/> which this filter will be added for.</typeparam>
39public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, Func<string?, LogLevel, bool> categoryLevelFilter) where T : ILoggerProvider =>
52/// Adds a log filter for the given <see cref="ILoggerProvider"/>.
56/// <typeparam name="T">The <see cref="ILoggerProvider"/> which this filter will be added for.</typeparam>
58public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider =>
72/// Adds a log filter for the given <see cref="ILoggerProvider"/>.
77/// <typeparam name="T">The <see cref="ILoggerProvider"/> which this filter will be added for.</typeparam>
79public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, string? category, LogLevel level) where T : ILoggerProvider =>
93/// Adds a log filter for the given <see cref="ILoggerProvider"/>.
98/// <typeparam name="T">The <see cref="ILoggerProvider"/> which this filter will be added for.</typeparam>
100public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, string? category, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider =>
122/// Adds a log filter for the given <see cref="ILoggerProvider"/>.
126/// <typeparam name="T">The <see cref="ILoggerProvider"/> which this filter will be added for.</typeparam>
128public static LoggerFilterOptions AddFilter<T>(this LoggerFilterOptions builder, Func<string?, LogLevel, bool> categoryLevelFilter) where T : ILoggerProvider =>
141/// Adds a log filter for the given <see cref="ILoggerProvider"/>.
145/// <typeparam name="T">The <see cref="ILoggerProvider"/> which this filter will be added for.</typeparam>
147public static LoggerFilterOptions AddFilter<T>(this LoggerFilterOptions builder, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider =>
161/// Adds a log filter for the given <see cref="ILoggerProvider"/>.
166/// <typeparam name="T">The <see cref="ILoggerProvider"/> which this filter will be added for.</typeparam>
168public static LoggerFilterOptions AddFilter<T>(this LoggerFilterOptions builder, string? category, LogLevel level) where T : ILoggerProvider =>
182/// Adds a log filter for the given <see cref="ILoggerProvider"/>.
187/// <typeparam name="T">The <see cref="ILoggerProvider"/> which this filter will be added for.</typeparam>
189public static LoggerFilterOptions AddFilter<T>(this LoggerFilterOptions builder, string? category, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider =>
LoggerFactory.cs (13)
34public LoggerFactory() : this(Array.Empty<ILoggerProvider>())
42public LoggerFactory(IEnumerable<ILoggerProvider> providers) : this(providers, new StaticFilterOptionsMonitor(new LoggerFilterOptions()))
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)
97foreach (ILoggerProvider provider in providers)
167/// <param name="provider">The <see cref="ILoggerProvider"/> to add.</param>
168public void AddProvider(ILoggerProvider provider)
196private void AddProviderRegistration(ILoggerProvider provider, bool dispose)
290public ILoggerProvider Provider;
316public void AddProvider(ILoggerProvider provider)
329public List<ILoggerProvider> Providers => loggerFactory._providerRegistrations.Select(r => r.Provider).ToList();
Microsoft.Extensions.Logging.Abstractions (6)
Microsoft.Extensions.Logging.AzureAppServices (3)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Logging.Debug (1)
Microsoft.Extensions.Logging.EventLog (2)
Microsoft.Extensions.Logging.EventSource (1)
Microsoft.Extensions.Logging.TraceSource (2)
Microsoft.Extensions.Telemetry (6)
Microsoft.Extensions.Telemetry.Tests (11)
Microsoft.Maui (1)