70 implementations of ILoggerProvider
aspire (1)
Aspire.Dashboard (1)
Aspire.Dashboard.Components.Tests (2)
Aspire.Dashboard.Tests (2)
Aspire.Hosting (1)
Aspire.Hosting.Testing.Tests (2)
Aspire.Hosting.Tests (3)
Aspire.Playground.Tests (2)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.RabbitMQ.Client.v7.Tests (1)
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.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.Extensions.Caching.Hybrid.Tests (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.ServiceDiscovery.Dns.Tests (2)
Microsoft.Extensions.Telemetry.PerformanceTests (1)
Microsoft.Extensions.Telemetry.Tests (7)
Microsoft.Gen.Logging.Generated.Tests (1)
SampleStartups (1)
Sockets.BindTests (1)
Sockets.FunctionalTests (1)
151 references to ILoggerProvider
aspire (1)
Aspire.Dashboard (1)
Aspire.Dashboard.Components.Tests (4)
Aspire.Dashboard.Tests (6)
Aspire.Hosting (1)
Aspire.Hosting.Testing.Tests (4)
Aspire.Hosting.Tests (4)
Aspire.Playground.Tests (4)
Aspire.RabbitMQ.Client.Tests (4)
Aspire.RabbitMQ.Client.v7.Tests (4)
Aspire.TestUtilities (2)
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 (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.Extensions.Caching.Hybrid.Tests (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 (44)
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)
35public LoggerFactory() : this(Array.Empty<ILoggerProvider>())
43public LoggerFactory(IEnumerable<ILoggerProvider> providers) : this(providers, new StaticFilterOptionsMonitor(new LoggerFilterOptions()))
52public LoggerFactory(IEnumerable<ILoggerProvider> providers, LoggerFilterOptions filterOptions) : this(providers, new StaticFilterOptionsMonitor(filterOptions))
61public LoggerFactory(IEnumerable<ILoggerProvider> providers, IOptionsMonitor<LoggerFilterOptions> filterOption) : this(providers, filterOption, null)
71public LoggerFactory(IEnumerable<ILoggerProvider> providers, IOptionsMonitor<LoggerFilterOptions> filterOption, IOptions<LoggerFactoryOptions>? options) : this(providers, filterOption, options, null)
82public LoggerFactory(IEnumerable<ILoggerProvider> providers, IOptionsMonitor<LoggerFilterOptions> filterOption, IOptions<LoggerFactoryOptions>? options = null, IExternalScopeProvider? scopeProvider = null)
98foreach (ILoggerProvider provider in providers)
168/// <param name="provider">The <see cref="ILoggerProvider"/> to add.</param>
169public void AddProvider(ILoggerProvider provider)
197private void AddProviderRegistration(ILoggerProvider provider, bool dispose)
298public ILoggerProvider Provider;
324public void AddProvider(ILoggerProvider provider)
337public List<ILoggerProvider> Providers => loggerFactory._providerRegistrations.Select(r => r.Provider).ToList();
Microsoft.Extensions.Logging.Abstractions (7)
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.ServiceDiscovery.Dns.Tests (4)
Microsoft.Extensions.Telemetry (6)
Microsoft.Extensions.Telemetry.Tests (11)
Microsoft.Maui (1)