From f9d18393b6327043b9ad5a68b72d0c4f996f4933 Mon Sep 17 00:00:00 2001 From: BrennanConroy Date: Wed, 3 May 2017 14:23:45 -0700 Subject: [PATCH] React to Logging API changes --- samples/MvcSandbox/Startup.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/samples/MvcSandbox/Startup.cs b/samples/MvcSandbox/Startup.cs index 1984d71708..1c883d9379 100644 --- a/samples/MvcSandbox/Startup.cs +++ b/samples/MvcSandbox/Startup.cs @@ -24,13 +24,10 @@ namespace MvcSandbox } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. - public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory) + public void Configure(IApplicationBuilder app) { app.UseDeveloperExceptionPage(); app.UseStaticFiles(); - loggerFactory - .AddConsole() - .AddDebug(); app.UseMvc(routes => { routes.MapRoute( @@ -43,6 +40,12 @@ namespace MvcSandbox { var host = new WebHostBuilder() .UseContentRoot(Directory.GetCurrentDirectory()) + .ConfigureLogging(factory => + { + factory + .AddConsole() + .AddDebug(); + }) .UseIISIntegration() .UseKestrel() .UseStartup()