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