Example #1
0
 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);
 }
Example #2
0
 public W3CLogger(IOptionsMonitor <W3CLoggerOptions> options, W3CLoggerProcessor messageQueue)
 {
     _options       = options;
     _loggingFields = _options.CurrentValue.LoggingFields;
     _options.OnChange(options =>
     {
         _loggingFields = options.LoggingFields;
     });
     _messageQueue = messageQueue;
 }