Ejemplo n.º 1
0
        public void DoOneTimeSetup()
        {
            // Need stack tools to get stack to validate exception class and method
            IStackTools s = new StackTools();

            WrapErr.SetStackTools(s);
        }
Ejemplo n.º 2
0
        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-----------------------------");
        }