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();