4 implementations of ILoggingBuilder
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Logging (1)
Microsoft.Maui (1)
224 references to ILoggingBuilder
Aspire.Dashboard.Components.Tests (6)
Aspire.Dashboard.Tests (6)
Aspire.Hosting.Testing.Tests (6)
Aspire.Hosting.Tests (6)
Aspire.Playground.Tests (6)
Microsoft.AspNetCore (1)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
Microsoft.AspNetCore.Hosting (4)
Microsoft.AspNetCore.InternalTesting (6)
Microsoft.AspNetCore.InternalTesting.Tests (1)
Microsoft.AspNetCore.SignalR.Client.Core (3)
Microsoft.Extensions.Diagnostics.Testing (6)
Microsoft.Extensions.Hosting (7)
Microsoft.Extensions.Hosting.Abstractions (1)
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)
Microsoft.Extensions.Logging.AzureAppServices (6)
Microsoft.Extensions.Logging.Configuration (7)
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)
Microsoft.Extensions.Logging.EventLog (9)
Microsoft.Extensions.Logging.EventSource (3)
Microsoft.Extensions.Logging.TraceSource (17)
Microsoft.Extensions.Telemetry (12)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Maui (3)