Beispiel #1
0
 public FileLogger(string categoryName, FileLoggerProcess fileLoggerProcess)
 {
     _categoryName      = categoryName;
     _fileLoggerProcess = fileLoggerProcess;
 }
 public FileLoggerProvider(IOptions <FileLoggerOptions> options, IOptionsMonitor <FileLoggerOptions> optionsMonitor)
 {
     _loggers           = new ConcurrentDictionary <string, FileLogger>();
     _options           = options.Value;
     _fileLoggerProcess = new FileLoggerProcess(_options?.FileName ?? "log.txt");
 }