Exemplo n.º 1
0
        static TracingManager()
        {
            _queueTracing = new LazyQueue<TracingEvent>("TracingManager.QueueTracing", 32, 50, TracingDequeueAction);
            _queueLog = new LazyQueue<SystemLogEvent>("TracingManager.QueueLog", 32, 50, SystemLogDequeueAction);
            _configSection = IICConfigSection.CreateDefault<TracingConfigSection>();
            _level = TracingLevel.Off;
            ReloadConfiguration();

            AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledException);
            Trace.Listeners.Add(new DebugTraceListener());

            ObserverManager.RegisterObserver("Tracing", ObserveProc, ClearObserver);
        }
Exemplo n.º 2
0
 public static void UpdateConfig()
 {
     _configSection = IICConfigurationManager.Configurator.GetConfigSecion<TracingConfigSection>(
         "IICTracing",
         delegate(TracingConfigSection section) {
             _configSection = section;
             ReloadConfiguration();
         }
     );
 }
Exemplo n.º 3
0
 public static void UpdateConfig(TracingConfigSection section)
 {
     _configSection = section;
     ReloadConfiguration();
 }