From 23f272161464eb66f8fcbca97d2121394cf50b72 Mon Sep 17 00:00:00 2001 From: Scott Beddall Date: Mon, 21 Aug 2023 13:49:29 -0700 Subject: [PATCH] Revert "Update Exception Logging (#6671)" This reverts commit be8d5b4d087d80206e398f3c00ce007204f8640e. Generating a version of the proxy WITH the logging fixes from #6812 but without the fixes to stderr output. --- tools/test-proxy/Azure.Sdk.Tools.TestProxy/Startup.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Startup.cs b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Startup.cs index 5508a54b2b9..26ac09a4f4b 100644 --- a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Startup.cs +++ b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Startup.cs @@ -21,9 +21,9 @@ using System.Linq; using System.CommandLine; using Azure.Sdk.Tools.TestProxy.CommandOptions; +using Microsoft.AspNetCore.Identity; +using Microsoft.CodeAnalysis.VisualBasic.Syntax; using System.Text.Json; -using Microsoft.Extensions.Logging.Console; -using Microsoft.Extensions.Options; namespace Azure.Sdk.Tools.TestProxy { @@ -147,12 +147,9 @@ private static void StartServer(StartOptions startOptions) { loggingBuilder.ClearProviders(); loggingBuilder.AddConfiguration(hostBuilder.Configuration.GetSection("Logging")); - loggingBuilder.AddConsole(options => + loggingBuilder.AddSimpleConsole(formatterOptions => { - options.LogToStandardErrorThreshold = LogLevel.Error; - }).AddSimpleConsole(options => - { - options.TimestampFormat = "[HH:mm:ss] "; + formatterOptions.TimestampFormat = "[HH:mm:ss] "; }); loggingBuilder.AddDebug(); loggingBuilder.AddEventSourceLogger();