public W3CLogger(IOptionsMonitor <W3CLoggerOptions> options, IHostEnvironment environment, ILoggerFactory factory) { _options = options; _loggingFields = _options.CurrentValue.LoggingFields; _options.OnChange(options => { _loggingFields = options.LoggingFields; }); _messageQueue = InitializeMessageQueue(_options, environment, factory); }
public W3CLogger(IOptionsMonitor <W3CLoggerOptions> options, W3CLoggerProcessor messageQueue) { _options = options; _loggingFields = _options.CurrentValue.LoggingFields; _options.OnChange(options => { _loggingFields = options.LoggingFields; }); _messageQueue = messageQueue; }