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