public PerRequestLogBuffer(int initialCapacity, LoggingLevelSpecification eventLevel, LoggingLevelSpecification allEventLevel,
                            ILogEventSink sink)
 {
     _eventLevel    = eventLevel;
     _allEventLevel = allEventLevel;
     _sink          = sink;
     _eventEntries  = new List <LogEventEntry>(initialCapacity);
 }
Esempio n. 2
0
 public BufferedSink(LogEventLevel eventLevel, LogEventLevel allEventLevel, string requestIdProperty, int maxRequestAgeInSeconds, ILogEventSink innerSink)
 {
     _eventLevel             = new LoggingLevelSpecification(eventLevel);
     _allEventLevel          = new LoggingLevelSpecification(allEventLevel);
     _sink                   = innerSink;
     _requestIdProperty      = requestIdProperty;
     _maxRequestAgeInSeconds = maxRequestAgeInSeconds;
     _buffers                = new Dictionary <string, PerRequestLogBuffer>();
 }