Skip to content

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

Hakan Kutluay edited this page Jan 27, 2020 · 6 revisions

Missing the trace and debug logs in .NET Core 2?

Check your appsettings.json

The following is advised:

{
    "Logging": {
        "IncludeScopes": false,
        "LogLevel": {
            "Default": "Trace",
            "Microsoft": "Information"
        }
    }
}

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

Clone this wiki locally