예제 #1
0
 public Logger(string host, string name, Func <string, LogLevel, bool> filter, LoggerProcessor processor)
 {
     _host      = host;
     _name      = name;
     _filter    = filter;
     _processor = processor;
 }
예제 #2
0
        public LoggerProvider(IOptions <LoggerOptions> options, IEventBus eventBus, LoggerProcessor processor)
        {
            _eventBus  = eventBus;
            _options   = options.Value;
            _processor = processor;
            _loggers   = new ConcurrentDictionary <string, Logger>();
            _filter    = GetFilter(_options.LogLevel);

            AddEventInfoToEventBus();
        }