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