Beispiel #1
0
 public ElasticLogger(string name, ElasticLogOptions elasticLogOptions, IBackgroundLogTaskQueue logTaskQueue, IHttpContextAccessor contextAccessor)
 {
     _elasticLogOptions = elasticLogOptions;
     _contextAccessor   = contextAccessor;
     _name         = name;
     _logtaskQueue = logTaskQueue;
 }
 public ElaticLoggerProvider(IOptions <ElasticLogOptions> options, IHttpContextAccessor contextAccessor, IBackgroundLogTaskQueue logTaskQueue)
 {
     _elasticLogOptions = options.Value;
     _contextAccessor   = contextAccessor;
     _logTaskQueue      = logTaskQueue;
 }