First of create LoggingConstant.cs File in that Declare all Pages name as variable without extension. For ex. public enum ModuleToLog { default, login } public enum LogType { DEBUG, EXCEPTION, INFO } After that create Logger.cs File.. public class Logger { public static void Write(LogType eLogType, ModuleToLog eModule, string strMethodName, string LogMessage, string strUserId) { …
Implement Logger in asp.net
