Example #1
0
 public void Clear()
 {
     lock (LoggerEvents)
     {
         lastEvent = null;
         LoggerEvents.Clear();
     }
 }
Example #2
0
 public virtual void AddEvent(CapturingLoggerEvent loggerEvent)
 {
     lastEvent = loggerEvent;
     lock (LoggerEvents)
     {
         LoggerEvents.Add(loggerEvent);
     }
 }
Example #3
0
        protected override void Write(LogLevelType level, object message, Exception exception)
        {
            CapturingLoggerEvent ev = new CapturingLoggerEvent(this, level, message, exception);

            AddEvent(ev);
        }