Beispiel #1
0
 public MongoDBLoggerProvider(IOptionsMonitor <MongoDBLoggerOptions> options)
 {
     _options      = options;
     _loggers      = new ConcurrentDictionary <string, MongoDBLogger>();
     _messageQueue = new MongoDBLoggerProcessor(options.CurrentValue);
     _messageQueue.MongoDBStorage = new MongoDBStorage();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DebugLogger"/> class.
 /// </summary>
 /// <param name="name">The name of the logger.</param>
 /// <param name="processor">processor.</param>
 ///
 public MongoDBLogger(string name, MongoDBLoggerProcessor processor)
 {
     _name      = name;
     _processor = processor;
 }