Пример #1
0
 public static void Initialize(IDebugConsoleController console)
 {
     var consoleListener = new DebugConsoleTraceListener(console, ThreadHelper.Generic);
     var activityLogListener = new ActivityLogTraceListener();
     foreach (var source in AllSources())
     {
         source.Listeners.Add(consoleListener);
         source.Listeners.Add(activityLogListener);
         source.Switch.Level = SourceLevels.All;
     }
 }
Пример #2
0
        public static void Initialize(IDebugConsoleController console)
        {
            var consoleListener     = new DebugConsoleTraceListener(console, ThreadHelper.Generic);
            var activityLogListener = new ActivityLogTraceListener();

            foreach (var source in AllSources())
            {
                source.Listeners.Add(consoleListener);
                source.Listeners.Add(activityLogListener);
                source.Switch.Level = SourceLevels.All;
            }
        }