Skip to content

Commit

Permalink
Updated example for ASP.NET Core 6 (Removed SetMinimumLevel) (NLog#859)…
Browse files Browse the repository at this point in the history
… (NLog#867)
  • Loading branch information
snakefoot authored Sep 2, 2022
1 parent 3364536 commit 7f3ba8e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

// NLog: Setup NLog for Dependency injection
builder.Logging.ClearProviders();
builder.Logging.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace);
builder.Host.UseNLog();

var app = builder.Build();
Expand All @@ -30,6 +29,8 @@

app.UseRouting();

//app.UseAuthorization()

app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
Expand Down

0 comments on commit 7f3ba8e

Please sign in to comment.