3 implementations of ILoggingBuilder
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\LoggingBuilder.cs (1)
9internal sealed class LoggingBuilder : ILoggingBuilder
Microsoft.Extensions.Hosting (1)
HostApplicationBuilder.cs (1)
394private sealed class LoggingBuilder : ILoggingBuilder
Microsoft.Extensions.Logging (1)
LoggingBuilder.cs (1)
8internal sealed class LoggingBuilder : ILoggingBuilder
221 references to ILoggingBuilder
Aspire.Dashboard.Components.Tests (6)
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (6)
13public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output) 19public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel) 25public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart)
Aspire.Dashboard.Tests (6)
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (6)
13public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output) 19public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel) 25public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart)
Aspire.Hosting.Testing.Tests (6)
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (6)
13public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output) 19public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel) 25public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart)
Aspire.Hosting.Tests (6)
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (6)
13public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output) 19public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel) 25public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart)
Aspire.Playground.Tests (6)
tests\Shared\Logging\XunitLoggerFactoryExtensions.cs (6)
13public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output) 19public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel) 25public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart)
Microsoft.AspNetCore (1)
WebApplicationBuilder.cs (1)
347public ILoggingBuilder Logging => _hostApplicationBuilder.Logging;
Microsoft.AspNetCore.App.Analyzers.Test (1)
Verifiers\CSharpAnalyzerVerifier.cs (1)
91TrimAssemblyExtension(typeof(Microsoft.Extensions.Logging.ILoggingBuilder).Assembly.Location),
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostBuilder.cs (1)
246public ILoggingBuilder Logging { get; }
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
JsonTranscodingServiceMethodProviderTests.cs (1)
261private IReadOnlyList<Endpoint> MapEndpoints<TService>(Action<ILoggingBuilder>? configureLogging = null)
Microsoft.AspNetCore.Hosting (4)
WebHostBuilderExtensions.cs (4)
225/// Adds a delegate for configuring the provided <see cref="ILoggingBuilder"/>. This may be called multiple times. 228/// <param name="configureLogging">The delegate that configures the <see cref="ILoggingBuilder"/>.</param> 230public static IWebHostBuilder ConfigureLogging(this IWebHostBuilder hostBuilder, Action<ILoggingBuilder> configureLogging) 241public static IWebHostBuilder ConfigureLogging(this IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, ILoggingBuilder> configureLogging)
Microsoft.AspNetCore.InternalTesting (6)
Logging\XunitLoggerFactoryExtensions.cs (6)
13public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output) 19public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel) 25public static ILoggingBuilder AddXunit(this ILoggingBuilder builder, ITestOutputHelper output, LogLevel minLevel, DateTimeOffset? logStart)
Microsoft.AspNetCore.InternalTesting.Tests (1)
XunitLoggerProviderTest.cs (1)
86private static ILoggerFactory CreateTestLogger(Action<ILoggingBuilder> configure)
Microsoft.AspNetCore.SignalR.Client.Core (3)
HubConnectionBuilderExtensions.cs (3)
17/// Adds a delegate for configuring the provided <see cref="ILoggingBuilder"/>. This may be called multiple times. 20/// <param name="configureLogging">The delegate that configures the <see cref="ILoggingBuilder"/>.</param> 22public static IHubConnectionBuilder ConfigureLogging(this IHubConnectionBuilder hubConnectionBuilder, Action<ILoggingBuilder> configureLogging)
Microsoft.Extensions.Diagnostics.Testing (6)
Logging\FakeLoggerBuilderExtensions.cs (6)
25public static ILoggingBuilder AddFakeLogging(this ILoggingBuilder builder, IConfigurationSection section) 43public static ILoggingBuilder AddFakeLogging(this ILoggingBuilder builder, Action<FakeLogCollectorOptions> configure) 60public static ILoggingBuilder AddFakeLogging(this ILoggingBuilder builder)
Microsoft.Extensions.Hosting (7)
HostApplicationBuilder.cs (1)
207public ILoggingBuilder Logging => _logging;
HostingHostBuilderExtensions.cs (6)
93/// Adds a delegate for configuring the provided <see cref="ILoggingBuilder"/>. This can be called multiple times. 96/// <param name="configureLogging">The delegate that configures the <see cref="ILoggingBuilder"/>.</param> 98public static IHostBuilder ConfigureLogging(this IHostBuilder hostBuilder, Action<HostBuilderContext, ILoggingBuilder> configureLogging) 104/// Adds a delegate for configuring the provided <see cref="ILoggingBuilder"/>. This can be called multiple times. 107/// <param name="configureLogging">The delegate that configures the <see cref="ILoggingBuilder"/>.</param> 109public static IHostBuilder ConfigureLogging(this IHostBuilder hostBuilder, Action<ILoggingBuilder> configureLogging)
Microsoft.Extensions.Hosting.Abstractions (1)
IHostApplicationBuilder.cs (1)
39ILoggingBuilder Logging { get; }
Microsoft.Extensions.Logging (65)
FilterLoggingBuilderExtensions.cs (42)
17/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param> 19/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 20public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, Func<string?, string?, LogLevel, bool> filter) => 26/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param> 28/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 29public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, Func<string?, LogLevel, bool> categoryLevelFilter) => 35/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param> 38/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 39public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, Func<string?, LogLevel, bool> categoryLevelFilter) where T : ILoggerProvider => 45/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param> 47/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 48public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, Func<LogLevel, bool> levelFilter) => 54/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param> 57/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 58public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider => 64/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param> 67/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 68public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, LogLevel level) => 74/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param> 78/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 79public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, string? category, LogLevel level) where T : ILoggerProvider => 85/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param> 88/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 89public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, Func<LogLevel, bool> levelFilter) => 95/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param> 99/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 100public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, string? category, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider => 106/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param> 108/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 184/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param> 188/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 192private static ILoggingBuilder ConfigureFilter(this ILoggingBuilder builder, Action<LoggerFilterOptions> configureOptions)
LoggerFactory.cs (2)
109/// <param name="configure">A delegate to configure the <see cref="ILoggingBuilder"/>.</param> 111public static ILoggerFactory Create(Action<ILoggingBuilder> configure)
LoggingBuilderExtensions.cs (18)
12/// Extension methods for setting up logging services in an <see cref="ILoggingBuilder" />. 19/// <param name="builder">The <see cref="ILoggingBuilder"/> to set the minimum level on.</param> 21/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 22public static ILoggingBuilder SetMinimumLevel(this ILoggingBuilder builder, LogLevel level) 30/// Adds the given <see cref="ILoggerProvider"/> to the <see cref="ILoggingBuilder"/> 32/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the <paramref name="provider"/> to.</param> 34/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 35public static ILoggingBuilder AddProvider(this ILoggingBuilder builder, ILoggerProvider provider) 44/// <param name="builder">The <see cref="ILoggingBuilder"/> to remove <see cref="ILoggerProvider"/>s from.</param> 45/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 46public static ILoggingBuilder ClearProviders(this ILoggingBuilder builder) 55/// <param name="builder">The <see cref="ILoggingBuilder"/> to be configured with <see cref="LoggerFactoryOptions"/>.</param> 57/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 58public static ILoggingBuilder Configure(this ILoggingBuilder builder, Action<LoggerFactoryOptions> action)
LoggingServiceCollectionExtensions.cs (2)
30/// <param name="configure">The <see cref="ILoggingBuilder"/> configuration delegate.</param> 32public static IServiceCollection AddLogging(this IServiceCollection services, Action<ILoggingBuilder> configure)
Properties\TypeForwards.cs (1)
4[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(Microsoft.Extensions.Logging.ILoggingBuilder))]
Microsoft.Extensions.Logging.AzureAppServices (6)
AzureAppServicesLoggerFactoryExtensions.cs (6)
25public static ILoggingBuilder AddAzureWebAppDiagnostics(this ILoggingBuilder builder) 39public static ILoggingBuilder AddAzureWebAppDiagnostics(this ILoggingBuilder builder, Action<AzureBlobLoggerOptions> configureBlobLoggerOptions) 47internal static ILoggingBuilder AddAzureWebAppDiagnostics(this ILoggingBuilder builder, IWebAppContext context, Action<AzureBlobLoggerOptions> configureBlobLoggerOptions)
Microsoft.Extensions.Logging.Configuration (7)
LoggingBuilderConfigurationExtensions.cs (3)
9/// Extension methods for setting up logging services in an <see cref="ILoggingBuilder" />. 16/// <param name="builder">The <see cref="ILoggingBuilder"/> to register services on.</param> 17public static void AddConfiguration(this ILoggingBuilder builder)
LoggingBuilderExtensions.cs (4)
12/// Extension methods for setting up logging services in an <see cref="ILoggingBuilder" />. 19/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 22public static ILoggingBuilder AddConfiguration(this ILoggingBuilder builder, IConfiguration configuration)
Microsoft.Extensions.Logging.Console (37)
ConsoleLoggerExtensions.cs (37)
18/// Provides extension methods for the <see cref="ILoggingBuilder"/> and <see cref="ILoggerProviderConfiguration{ConsoleLoggerProvider}"/> classes. 29/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 30public static ILoggingBuilder AddConsole(this ILoggingBuilder builder) 49/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 51public static ILoggingBuilder AddConsole(this ILoggingBuilder builder, Action<ConsoleLoggerOptions> configure) 64/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 65public static ILoggingBuilder AddSimpleConsole(this ILoggingBuilder builder) => 71/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 73public static ILoggingBuilder AddSimpleConsole(this ILoggingBuilder builder, Action<SimpleConsoleFormatterOptions> configure) 81/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 82public static ILoggingBuilder AddJsonConsole(this ILoggingBuilder builder) => 88/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 90public static ILoggingBuilder AddJsonConsole(this ILoggingBuilder builder, Action<JsonConsoleFormatterOptions> configure) 98/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 100public static ILoggingBuilder AddSystemdConsole(this ILoggingBuilder builder, Action<ConsoleFormatterOptions> configure) 108/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 109public static ILoggingBuilder AddSystemdConsole(this ILoggingBuilder builder) => 112internal static ILoggingBuilder AddConsoleWithFormatter<TOptions>(this ILoggingBuilder builder, string name, Action<TOptions> configure) 123private static ILoggingBuilder AddFormatterWithName(this ILoggingBuilder builder, string name) => 129/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 132public static ILoggingBuilder AddConsoleFormatter<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TFormatter, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TOptions>(this ILoggingBuilder builder) 142/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 146public static ILoggingBuilder AddConsoleFormatter<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TFormatter, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TOptions>(this ILoggingBuilder builder, Action<TOptions> configure) 157private static ILoggingBuilder AddConsoleFormatter<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TFormatter, TOptions, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TConfigureOptions>(this ILoggingBuilder builder)
Microsoft.Extensions.Logging.Debug (2)
DebugLoggerFactoryExtensions.cs (2)
51public static ILoggingBuilder AddDebug(this ILoggingBuilder builder)
Microsoft.Extensions.Logging.EventLog (9)
EventLoggerFactoryExtensions.cs (9)
55/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 56public static ILoggingBuilder AddEventLog(this ILoggingBuilder builder) 70/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 71public static ILoggingBuilder AddEventLog(this ILoggingBuilder builder, EventLogSettings settings) 86/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 87public static ILoggingBuilder AddEventLog(this ILoggingBuilder builder, Action<EventLogSettings> configure)
Microsoft.Extensions.Logging.EventSource (3)
EventSourceLoggerFactoryExtensions.cs (3)
38/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 39public static ILoggingBuilder AddEventSourceLogger(this ILoggingBuilder builder)
Microsoft.Extensions.Logging.TraceSource (17)
TraceSourceFactoryExtensions.cs (17)
13/// Extension methods for setting up <see cref="TraceSourceLoggerProvider"/> on a <see cref="ILoggingBuilder"/>. 96/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 98/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 99public static ILoggingBuilder AddTraceSource( 100this ILoggingBuilder builder, 112/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 115/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 116public static ILoggingBuilder AddTraceSource( 117this ILoggingBuilder builder, 131/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 133/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 134public static ILoggingBuilder AddTraceSource( 135this ILoggingBuilder builder, 149/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param> 152/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns> 153public static ILoggingBuilder AddTraceSource( 154this ILoggingBuilder builder,
Microsoft.Extensions.Telemetry (12)
Logging\LoggingEnrichmentExtensions.cs (6)
23public static ILoggingBuilder EnableEnrichment(this ILoggingBuilder builder) 32public static ILoggingBuilder EnableEnrichment(this ILoggingBuilder builder, Action<LoggerEnrichmentOptions> configure) 50public static ILoggingBuilder EnableEnrichment(this ILoggingBuilder builder, IConfigurationSection section)
Logging\LoggingRedactionExtensions.cs (6)
23public static ILoggingBuilder EnableRedaction(this ILoggingBuilder builder) 32public static ILoggingBuilder EnableRedaction(this ILoggingBuilder builder, Action<LoggerRedactionOptions> configure) 49public static ILoggingBuilder EnableRedaction(this ILoggingBuilder builder, IConfigurationSection section)
Microsoft.Extensions.Telemetry.Tests (1)
Logging\Utils.cs (1)
12public static ILoggerFactory CreateLoggerFactory(Action<ILoggingBuilder>? configure = null)