Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Commit f9d1839

Browse files
committed
React to Logging API changes
1 parent 561a22e commit f9d1839

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

samples/MvcSandbox/Startup.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@ public void ConfigureServices(IServiceCollection services)
2424
}
2525

2626
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
27-
public void Configure(IApplicationBuilder app, ILoggerFactory loggerFactory)
27+
public void Configure(IApplicationBuilder app)
2828
{
2929
app.UseDeveloperExceptionPage();
3030
app.UseStaticFiles();
31-
loggerFactory
32-
.AddConsole()
33-
.AddDebug();
3431
app.UseMvc(routes =>
3532
{
3633
routes.MapRoute(
@@ -43,6 +40,12 @@ public static void Main(string[] args)
4340
{
4441
var host = new WebHostBuilder()
4542
.UseContentRoot(Directory.GetCurrentDirectory())
43+
.ConfigureLogging(factory =>
44+
{
45+
factory
46+
.AddConsole()
47+
.AddDebug();
48+
})
4649
.UseIISIntegration()
4750
.UseKestrel()
4851
.UseStartup<Startup>()

0 commit comments

Comments
 (0)