Skip to main content

ASP.NET Core debug logging

This article provides information on how to access ASP.NET Core debug logs.

ASP.NET / .NET freehosting
If you don't already have our ASP.NET / .NET freehosting, sign up for FREE at https://MonsterASP.net/.

ASP.NET Core debug logs

If unexpected exceptions have occurred in your ASP.NET Core application and you need to check debug logs where these exceptions are logged by default. You can easily enable debug mode from our hosting Control panel.

  1. Control panel
    Go to Detailed Settings of your Website and click on Scripting in menu on left. Here in AspNetCore Settings section enable Log output to file and click Save.

ASPNET_Core_debug_logs_1.png

This setting enables ASP.NET Core application to start saving output logs to .\logs\stdout files on FTP.

After changing this setting we recommend restart AppPool for take to effect.

  1. WebFTP access
    Now your application is storing debug logs on FTP and you need to access and view these log files. Easiest way to do this is to use WebFTP access. Click on Files in menu on left and there click on WebFTP icon.

ASPNET_Core_debug_logs_2.png

  1. WebFTP interface
    After opening WebFTP interface, navigate to /wwwroot/logs/ directory and you will find there ASP.NET Core debug log files, which you can view directly using Edit option.

ASPNET_Core_debug_logs_3.png

Debug logging is performance and disk intensive. It is important to turn it OFF again when you are finished.