public static void Clear() { lock (lockObject) { LoggingEvent someItem; while (!Entries.IsEmpty) { Entries.TryDequeue(out someItem); } OnCollectionChanged(null, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset)); } }