public ActiveLoggerProvider(IOptionsMonitor <ActiveLoggerOptions> options)
        {
            loggerOptions = options.CurrentValue;

            producer = ActiveProducer.Create(loggerOptions);
            producer.InitializeCount = loggerOptions.InitializeCount;
        }
Exemplo n.º 2
0
 public ActiveLogger(string category, ActiveLoggerOptions options, ActiveProducer producer)
 {
     this.category      = category ?? "";
     this.loggerOptions = options;
     this.producer      = producer;
 }