Skip to content

Missing trace\debug logs in ASP.NET Core 6?

Thomas Ardal edited this page Dec 1, 2021 · 8 revisions

Missing the trace and debug logs in ASP.NET Core 6?

Check your appsettings.json

The following is advised:

{
  "Logging": {
    "LogLevel": {
      "Default": "Trace",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "AllowedHosts": "*"
}

⚠️ Make sure also to check any environment specific appsettings.json. Ex. appsettings.development.json

Clone this wiki locally