Skip to content

Commit

Permalink
return the format to one I know doesnt output to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd committed Mar 15, 2024
1 parent fbff3bf commit 8848c37
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tools/test-proxy/Azure.Sdk.Tools.TestProxy/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = startOptions.UniversalOutput ? LogLevel.None : LogLevel.Error;
}).AddSimpleConsole(options =>
{
options.TimestampFormat = "[HH:mm:ss] ";
formatterOptions.TimestampFormat = "[HH:mm:ss] ";
});
loggingBuilder.AddDebug();
loggingBuilder.AddEventSourceLogger();
Expand Down

0 comments on commit 8848c37

Please sign in to comment.