Exemplo n.º 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;
     }
 }
Exemplo n.º 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;
            }
        }