Esempio n. 1
0
        private void Initialize()
        {
            traceToLoggerAdaptor = new TraceToLoggerAdaptor();

            //Have the CTL send its logs out to the infra via the logging Client
            logger = LogContract.ConnectClient();
            traceToLoggerAdaptor.Logger = logger;

            //Register the CTL to intercept trace messages
            Trace.Listeners.Add(traceToLoggerAdaptor);

            //Disable tracing of Fail to UI
            Trace.Listeners.Remove("Default");
            initialized = true;

            WireUp();
        }
Esempio n. 2
0
 public void Close()
 {
     LogContract.DisconnectClient(this);
 }