public HarLoggerProvider(IOptionsMonitor <HarLoggerOptions> options, IHttpContextAccessor httpContextAccessor) { _config = options; _loggers = new ConcurrentDictionary <string, HarLogger>(); _messageQueue = new HarLoggerProcessor(); _httpContext = httpContextAccessor; }
public HarLogger(string loggerName, HarLoggerProcessor processor, IHttpContextAccessor httpContextAccessor) { if (loggerName == null) { throw new ArgumentNullException(nameof(loggerName)); } _loggerName = loggerName; _processor = processor; _httpAccessor = httpContextAccessor; }