public void DoOneTimeSetup() { // Need stack tools to get stack to validate exception class and method IStackTools s = new StackTools(); WrapErr.SetStackTools(s); }
public App() { log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile)); this.loggerImpl = log4net.LogManager.GetLogger(typeof(App)); Log.SetStackTools(new StackTools()); WrapErr.SetStackTools(new StackTools()); Log.SetVerbosity(MsgLevel.Info); Log.SetMsgNumberThreshold(5); Log.OnLogMsgEvent += new LogingMsgEventDelegate(this.Log_OnLogMsgEvent); Log.Warning(0, "---------------------Started-----------------------------"); }