Skip to content

Commit 4fcd1c4

Browse files
committed
Log plaintext
1 parent 95365f5 commit 4fcd1c4

File tree

1 file changed

+6
-0
lines changed
  • src/BenchmarksApps/TechEmpower/PlatformBenchmarks

1 file changed

+6
-0
lines changed

src/BenchmarksApps/TechEmpower/PlatformBenchmarks/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using System.Threading.Tasks;
88
using Microsoft.AspNetCore.Hosting;
99
using Microsoft.Extensions.Configuration;
10+
using Microsoft.Extensions.Logging;
1011
#if DATABASE
1112
using Npgsql;
1213
#endif
@@ -84,6 +85,11 @@ public static IWebHost BuildWebHost(string[] args)
8485
#endif
8586

8687
var hostBuilder = new WebHostBuilder()
88+
.ConfigureLogging(l =>
89+
{
90+
l.AddConsole();
91+
l.SetMinimumLevel(LogLevel.Trace);
92+
})
8793
.UseBenchmarksConfiguration(config)
8894
.UseKestrel((context, options) =>
8995
{

0 commit comments

Comments
 (0)