LogConfig constructor
const
LogConfig({
- int retentionDays = 7,
- bool enableFileLog = true,
- LogLevel logLevel = LogLevel.all,
- LogLevel recordLevel = LogLevel.info,
- Directory? logDirectory,
- List<
LogOutput> ? output, - LogPrinter? printer,
- LogFilter? filter,
- List<
LogOutput> composeOutputs(- List<
LogOutput>
- List<
- int rotateSizeBytes = 5 * 1024 * 1024,
- int bufferMaxEvents = 256,
- Duration bufferFlushDelay = const Duration(milliseconds: 300),
- Duration periodicFlushInterval = const Duration(seconds: 2),
- String latestFileName = 'latest.log',
- 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,
});