public ElasticsearchLoggerProvider(IOptionsMonitor <ElasticsearchLoggerOptions> options)
 {
     _options   = options;
     _processor = new ElasticsearchDataProcessor();
     _loggers   = new ConcurrentDictionary <string, ElasticsearchLogger>();
     ReloadLoggerOptions(options.CurrentValue);
     _optionsReloadToken = _options.OnChange(ReloadLoggerOptions);
 }
예제 #2
0
 internal ElasticsearchLogger(string categoryName, ElasticsearchDataProcessor dataProcessor)
 {
     _categoryName  = categoryName;
     _dataProcessor = dataProcessor;
 }