コード例 #1
0
 public RollingFileLoggerProvider(IOptionsMonitor <RollingFileLoggerOptions> options)
 {
     _options   = options;
     _processor = new RollingFileLoggerProcessor();
     _loggers   = new ConcurrentDictionary <string, RollingFileLogger>();
     ReloadLoggerOptions(options.CurrentValue);
     _optionsReloadToken = _options.OnChange(ReloadLoggerOptions);
 }
コード例 #2
0
 internal RollingFileLogger(string categoryName, RollingFileLoggerProcessor loggerProcessor)
 {
     _categoryName    = categoryName;
     _loggerProcessor = loggerProcessor;
 }