From af483745bed60cd2dcea797d5dda84de34c92a85 Mon Sep 17 00:00:00 2001 From: Eric Erhardt Date: Thu, 9 Feb 2023 18:24:03 -0600 Subject: [PATCH] Comment out ConfigBinder in Extensions.Logging.Console. --- .../src/ConsoleLoggerExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLoggerExtensions.cs b/src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLoggerExtensions.cs index 160e099097f8c..e3f51dc5d1324 100644 --- a/src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLoggerExtensions.cs +++ b/src/libraries/Microsoft.Extensions.Logging.Console/src/ConsoleLoggerExtensions.cs @@ -40,7 +40,7 @@ public static ILoggingBuilder AddConsole(this ILoggingBuilder builder) builder.AddConsoleFormatter(); builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton()); - LoggerProviderOptions.RegisterProviderOptions(builder.Services); + //LoggerProviderOptions.RegisterProviderOptions(builder.Services); return builder; } @@ -138,7 +138,7 @@ private static ILoggingBuilder AddFormatterWithName(this ILoggingBuilder builder builder.AddConfiguration(); builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton()); - builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton, ConsoleLoggerFormatterConfigureOptions>()); + //builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton, ConsoleLoggerFormatterConfigureOptions>()); builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton, ConsoleLoggerFormatterOptionsChangeTokenSource>()); return builder;