Пример #1
0
 public FileLoggerProvider(FileLoggerOptions options)
 {
     _options          = options;
     _fileLoggerWriter = new FileLoggerWriter(options);
 }
Пример #2
0
 public FileLoggerWriter(FileLoggerOptions options)
 {
     Options = options;
     _logDir = Options.Path ?? Path.Combine(AppContext.BaseDirectory, "logs");
     BeginAsyncQueueWriter();
 }