From 4fcd1c4833657c0da515ebb3f9ad19f7a1f3a95f Mon Sep 17 00:00:00 2001 From: Brennan Date: Thu, 20 Feb 2025 11:23:02 -0800 Subject: [PATCH] Log plaintext --- .../TechEmpower/PlatformBenchmarks/Program.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/BenchmarksApps/TechEmpower/PlatformBenchmarks/Program.cs b/src/BenchmarksApps/TechEmpower/PlatformBenchmarks/Program.cs index 58238dbe2..9d38f33f7 100644 --- a/src/BenchmarksApps/TechEmpower/PlatformBenchmarks/Program.cs +++ b/src/BenchmarksApps/TechEmpower/PlatformBenchmarks/Program.cs @@ -7,6 +7,7 @@ using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Logging; #if DATABASE using Npgsql; #endif @@ -84,6 +85,11 @@ public static IWebHost BuildWebHost(string[] args) #endif var hostBuilder = new WebHostBuilder() + .ConfigureLogging(l => + { + l.AddConsole(); + l.SetMinimumLevel(LogLevel.Trace); + }) .UseBenchmarksConfiguration(config) .UseKestrel((context, options) => {