Browse Source

Add Microsoft.Extensions.Logging.Debug to Mvc.Client and Mvc.Server

pull/34/head
Kévin Chalet 10 years ago
parent
commit
09ad9e974a
  1. 1
      samples/Mvc.Client/Startup.cs
  2. 1
      samples/Mvc.Client/project.json
  3. 1
      samples/Mvc.Server/Startup.cs
  4. 1
      samples/Mvc.Server/project.json

1
samples/Mvc.Client/Startup.cs

@ -20,6 +20,7 @@ namespace Mvc.Client {
public void Configure(IApplicationBuilder app) { public void Configure(IApplicationBuilder app) {
var factory = app.ApplicationServices.GetRequiredService<ILoggerFactory>(); var factory = app.ApplicationServices.GetRequiredService<ILoggerFactory>();
factory.AddConsole(); factory.AddConsole();
factory.AddDebug();
app.UseIISPlatformHandler(options => { app.UseIISPlatformHandler(options => {
options.FlowWindowsAuthentication = false; options.FlowWindowsAuthentication = false;

1
samples/Mvc.Client/project.json

@ -11,6 +11,7 @@
"Microsoft.AspNet.StaticFiles": "1.0.0-*", "Microsoft.AspNet.StaticFiles": "1.0.0-*",
"Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.Extensions.Logging.Console": "1.0.0-*",
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
"Newtonsoft.Json": "7.0.1" "Newtonsoft.Json": "7.0.1"
}, },

1
samples/Mvc.Server/Startup.cs

@ -38,6 +38,7 @@ namespace Mvc.Server {
public void Configure(IApplicationBuilder app) { public void Configure(IApplicationBuilder app) {
var factory = app.ApplicationServices.GetRequiredService<ILoggerFactory>(); var factory = app.ApplicationServices.GetRequiredService<ILoggerFactory>();
factory.AddConsole(); factory.AddConsole();
factory.AddDebug();
app.UseIISPlatformHandler(options => { app.UseIISPlatformHandler(options => {
options.FlowWindowsAuthentication = false; options.FlowWindowsAuthentication = false;

1
samples/Mvc.Server/project.json

@ -14,6 +14,7 @@
"Microsoft.AspNet.StaticFiles": "1.0.0-*", "Microsoft.AspNet.StaticFiles": "1.0.0-*",
"Microsoft.Extensions.Logging.Console": "1.0.0-*", "Microsoft.Extensions.Logging.Console": "1.0.0-*",
"Microsoft.Extensions.Logging.Debug": "1.0.0-*",
"OpenIddict": "1.0.0-*" "OpenIddict": "1.0.0-*"
}, },

Loading…
Cancel
Save