protected DiagnosticListenerObserver(ILoggerFactory loggerFactory, ITracer tracer, GenericEventOptions options)
     : base(loggerFactory, tracer)
 {
     if (!options.IsIgnored(GetListenerName()))
     {
         _genericEventProcessor = new GenericEventProcessor(GetListenerName(), Tracer, Logger, options);
     }
 }
示例#2
0
        protected DiagnosticEventObserver(ILoggerFactory loggerFactory, ITracer tracer, DiagnosticOptions options)
            : base(loggerFactory, tracer)
        {
            _options = options;

            if (options.LogEvents)
            {
                _genericEventProcessor = new GenericEventProcessor(GetListenerName(), Tracer, Logger);
            }
        }
示例#3
0
 protected DiagnosticListenerObserver(ILoggerFactory loggerFactory, ITracer tracer)
     : base(loggerFactory, tracer)
 {
     _genericEventProcessor = new GenericEventProcessor(GetListenerName(), Tracer, Logger);
 }