Ben Foster 1/18/2016

How to log debug messages in ASP.NET Core (ASP.NET 5)

Read Original

This technical article details a common issue in ASP.NET Core (ASP.NET 5) where debug log messages are not displayed. It explains that both the ILoggerFactory.MinimumLevel and the specific logging provider (e.g., Console) must be explicitly set to LogLevel.Debug, as providers default to Information. The solution includes code examples for startup configuration and appsettings.json.

How to log debug messages in ASP.NET Core (ASP.NET 5)

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week