Beispiel #1
0
 public Log4NetLogHelperFactory(string configFilePath)
 {
     log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(configFilePath));
     LogHelperFactory.SetCurrent(this);
 }
Beispiel #2
0
 public void OnException(ExceptionContext context)
 {
     LogHelperFactory.CreateLog().WriteLog(LogType.UnhandledLog, this.ToString(),
                                           "OnException", context.Exception, "Unhandled Error in Web application: Web");
 }
Beispiel #3
0
 public Log4NetLogHelperFactory()
 {
     log4net.Config.XmlConfigurator.Configure();
     LogHelperFactory.SetCurrent(this);
 }