This class can be used to create custom logger in ASP.NET application which includes the functionality of giving the permissions to the log folder where seperate log file will be created for each day. using System; using System.Collections.Generic; using System.Text; using System.IO; using System.Security.AccessControl; namespace MyNamespace.Logger { public class Logger { public static void CreateLog(string strMessage, string moduleName, bool isError) { try { string strIsError = string.Empty; if (isError) ...
Comments
Post a Comment