Added connection logs (#24607)

This commit is contained in:
David Fowler 2020-08-05 18:57:14 -07:00 committed by GitHub
parent f52077f599
commit 8cbe97df4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -28,10 +28,18 @@ namespace BasicLinkedApp
.ConfigureLogging(logging =>
{
logging.AddConsole();
logging.SetMinimumLevel(LogLevel.Debug);
})
.ConfigureWebHost(webHostBuilder =>
{
webHostBuilder.UseKestrel().UseStartup<Startup>();
webHostBuilder.UseKestrel(o =>
{
o.ConfigureEndpointDefaults(lo =>
{
lo.UseConnectionLogging();
});
}).UseStartup<Startup>();
});
}
}