4 implementations of ILoggingBuilder
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Logging (1)
Microsoft.Maui (1)
270 references to ILoggingBuilder
Aspire.Cli.Tests (6)
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.Diagnostics.Middleware (11)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (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 (61)
FilterLoggingBuilderExtensions.cs (38)
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>
29public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, Func<string?, string?, LogLevel, bool> filter) =>
35/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param>
37/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns>
46public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, Func<string?, LogLevel, bool> categoryLevelFilter) =>
52/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param>
55/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns>
64public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, Func<string?, LogLevel, bool> categoryLevelFilter) where T : ILoggerProvider =>
70/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param>
72/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns>
80public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, Func<LogLevel, bool> levelFilter) =>
86/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param>
89/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns>
97public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider =>
103/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param>
106/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns>
107public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, LogLevel level) =>
113/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param>
117/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns>
118public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, string? category, LogLevel level) where T : ILoggerProvider =>
124/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param>
127/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns>
135public static ILoggingBuilder AddFilter(this ILoggingBuilder builder, string? category, Func<LogLevel, bool> levelFilter) =>
141/// <param name="builder">The <see cref="ILoggingBuilder"/> to add the filter to.</param>
145/// <returns>The <see cref="ILoggingBuilder"/> so that additional calls can be chained.</returns>
153public static ILoggingBuilder AddFilter<T>(this ILoggingBuilder builder, string? category, Func<LogLevel, bool> levelFilter) where T : ILoggerProvider =>
298private 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)
17/// Provides extension methods for the <see cref="ILoggingBuilder"/> and <see cref="ILoggerProviderConfiguration{ConsoleLoggerProvider}"/> classes.
28/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param>
29public static ILoggingBuilder AddConsole(this ILoggingBuilder builder)
48/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param>
50public static ILoggingBuilder AddConsole(this ILoggingBuilder builder, Action<ConsoleLoggerOptions> configure)
63/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param>
64public static ILoggingBuilder AddSimpleConsole(this ILoggingBuilder builder) =>
70/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param>
72public static ILoggingBuilder AddSimpleConsole(this ILoggingBuilder builder, Action<SimpleConsoleFormatterOptions> configure)
80/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param>
81public static ILoggingBuilder AddJsonConsole(this ILoggingBuilder builder) =>
87/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param>
89public static ILoggingBuilder AddJsonConsole(this ILoggingBuilder builder, Action<JsonConsoleFormatterOptions> configure)
97/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param>
99public static ILoggingBuilder AddSystemdConsole(this ILoggingBuilder builder, Action<ConsoleFormatterOptions> configure)
107/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param>
108public static ILoggingBuilder AddSystemdConsole(this ILoggingBuilder builder) =>
111internal static ILoggingBuilder AddConsoleWithFormatter<TOptions>(this ILoggingBuilder builder, string name, Action<TOptions> configure)
122private static ILoggingBuilder AddFormatterWithName(this ILoggingBuilder builder, string name) =>
128/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param>
131public static ILoggingBuilder AddConsoleFormatter<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TFormatter, TOptions>(this ILoggingBuilder builder)
141/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param>
145public static ILoggingBuilder AddConsoleFormatter<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TFormatter, TOptions>(this ILoggingBuilder builder, Action<TOptions> configure)
156private 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.ServiceDiscovery.Dns.Tests (2)
Microsoft.Extensions.Telemetry (35)
Microsoft.Extensions.Telemetry.Tests (8)
Microsoft.Maui (3)