LogConfig constructor

const LogConfig({
  1. int retentionDays = 7,
  2. bool enableFileLog = true,
  3. LogLevel logLevel = LogLevel.all,
  4. LogLevel recordLevel = LogLevel.info,
  5. Directory? logDirectory,
  6. List<LogOutput>? output,
  7. LogPrinter? printer,
  8. LogFilter? filter,
  9. List<LogOutput> composeOutputs(
    1. List<LogOutput>
    )?,
  10. int rotateSizeBytes = 5 * 1024 * 1024,
  11. int bufferMaxEvents = 256,
  12. Duration bufferFlushDelay = const Duration(milliseconds: 300),
  13. Duration periodicFlushInterval = const Duration(seconds: 2),
  14. String latestFileName = 'latest.log',
  15. String? id,
})

Implementation

const LogConfig({
  this.retentionDays = 7,
  this.enableFileLog = true,
  this.logLevel = LogLevel.all,
  this.recordLevel = LogLevel.info,
  this.logDirectory,
  this.output,
  this.printer,
  this.filter,
  this.composeOutputs,
  this.rotateSizeBytes = 5 * 1024 * 1024,
  this.bufferMaxEvents = 256,
  this.bufferFlushDelay = const Duration(milliseconds: 300),
  this.periodicFlushInterval = const Duration(seconds: 2),
  this.latestFileName = 'latest.log',
  this.id,
});