React to Logging API changes (#1775)

React to Logging API changes
This commit is contained in:
BrennanConroy 2017-04-26 13:44:55 -07:00 committed by GitHub
parent 9464003bda
commit 1a26dc0238
1 changed files with 4 additions and 1 deletions

View File

@ -17,7 +17,6 @@ namespace SampleApp
{
public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
{
loggerFactory.AddConsole(LogLevel.Trace);
var logger = loggerFactory.CreateLogger("Default");
app.Run(async context =>
@ -42,6 +41,10 @@ namespace SampleApp
};
var host = new WebHostBuilder()
.ConfigureLogging((_, factory) =>
{
factory.AddConsole();
})
.UseKestrel(options =>
{
// Run callbacks on the transport thread