Example #1
0
        public GenericEventProcessor(string listenerName, ITracer tracer, ILogger logger, GenericEventOptions options)
        {
            _listenerName = listenerName ?? throw new ArgumentNullException(nameof(listenerName));
            _tracer       = tracer ?? throw new ArgumentNullException(nameof(tracer));
            _logger       = logger ?? throw new ArgumentNullException(nameof(logger));
            _options      = options;

            _isLogLevelTraceEnabled = _logger.IsEnabled(LogLevel.Trace);
        }
 protected DiagnosticListenerObserver(ILoggerFactory loggerFactory, ITracer tracer, GenericEventOptions options)
     : base(loggerFactory, tracer)
 {
     if (!options.IsIgnored(GetListenerName()))
     {
         _genericEventProcessor = new GenericEventProcessor(GetListenerName(), Tracer, Logger, options);
     }
 }