4 implementations of ILoggingBuilder
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Logging (1)
Microsoft.Maui (1)
265 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.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 (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)
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, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] TOptions>(this ILoggingBuilder builder)
141/// <param name="builder">The <see cref="ILoggingBuilder"/> to use.</param>
145public static ILoggingBuilder AddConsoleFormatter<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] TFormatter, [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] 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.Telemetry (35)
Microsoft.Extensions.Telemetry.Tests (7)
Microsoft.Maui (3)