コード例 #1
0
        public void DoOneTimeSetup()
        {
            // Need stack tools to get stack to validate exception class and method
            IStackTools s = new StackTools();

            WrapErr.SetStackTools(s);
        }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: MichaelRoop/SharedNetLibs
        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-----------------------------");
        }