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