- Using Log4Net to log all the functions called in ASP.NET and C# application
- private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
- log4net.Config.XmlConfigurator.Configure();
- log.Debug("My function called");