Enabling ASP.NET Core Error Logging

ASP.NET Core error logging is not enabled by default after publishing an application. To enable error logging:

Edit your web.config file on the server and change the stdoutLogEnabled attribute from "false" to "true".

Create a "logs" folder in the root directory where you published your ASP.NET Core application to or change the stdoutLogFile attribute's path in the web.config file and then create the corresponding folder where you want the logs placed in.