public void TearDown()
        {
            //            loggerFactoryAdapter.LogMessages.Clear();

            //reset so other tests can produce some output if needed.
            loggerFactoryAdapter.Clear();
            LogManager.Adapter = originalAdapter;
        }
 void _timer_Tick(object sender, EventArgs e)
 {
     // Go through all logging events since the last time we had any and display them
     foreach (CapturingLoggerEvent logEvent in _capturingLogger.LoggerEvents)
     {
         _logMessages.Add(logEvent.RenderedMessage);
     }
     _capturingLogger.Clear();
 }
Exemple #3
0
 public void Clear()
 {
     _loggingAdapter.Clear();
 }
Exemple #4
0
 public TestLogger()
 {
     _loggingAdapter = new CapturingLoggerFactoryAdapter();
     _loggingAdapter.Clear();
 }
Exemple #5
0
 private void Init()
 {
     adapter = LogManager.Adapter as CapturingLoggerFactoryAdapter;
     adapter.Clear();
 }