コード例 #1
0
 /// <summary>
 /// Initializes a new <see cref="CriticalErrorCollector"/> with a default <see cref="Capacity"/> set to 128.
 /// </summary>
 public CriticalErrorCollector()
 {
     _collector     = new FIFOBuffer <Error>(128);
     _raiseLock     = new object();
     _endOfWorkLock = new object();
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new collector with an initial capacity of 50 errors (<see cref="LevelFilter"/> is set to <see cref="LogLevelFilter.Error"/>).
 /// </summary>
 public ActivityLoggerSimpleCollector()
 {
     _entries = new FIFOBuffer <Entry>(50);
     _filter  = LogLevelFilter.Error;
 }