public ElasticsearchLoggerProvider(ElasticsearchLoggerOptions options)
        {
            _endpoint    = options.ElasticsearchEndpoint;
            _indexPrefix = options.IndexName;

            //build the client
            //build the batcher
            Initialize();
        }
 public static ILoggerFactory AddElasticSearch(this ILoggerFactory loggerFactory, ElasticsearchLoggerOptions options)
 {
     loggerFactory.AddProvider(new ElasticsearchLoggerProvider(options));
     return(loggerFactory);
 }