Simple way configure Logging in ASP.NET WebForms Application

C# PROGRAMMINGThis article shows how to set up logging using ELMAH.ELMAH (Error Logging Modules and Handlers) is an application-wide error logging facility that is completely pluggable. It can be dynamically added to a running ASP.NET web application, or even all ASP.NET web applications on a machine, without any need for re-compilation or re-deployment.Once ELMAH has been … Continue reading Simple way configure Logging in ASP.NET WebForms Application

How to configure NLog Framework?

.NET PROGRAMMINGThis article demonstrates how to add file logging using NLog Framework.Github ProjectStep 1: Create an empty .NET core web api project inside visual studio.Step 2: Install NLog.Web.AspNetCore from nuget managerStep 3: Add a configuration file into the project. For example, “nlog.config”Add the below code into the configuration for file logging. Path of the file is highlighted belowhttps://gist.github.com/ssukhpinder/54776c3e09b0f378303c52ce6854fbc0Step … Continue reading How to configure NLog Framework?