LucidLoggerConfig constructor

LucidLoggerConfig({
  1. LucidLogLevel minLevel = LucidLogLevel.info,
  2. bool enableColors = true,
  3. LucidLogFormat format = LucidLogFormat.detailed,
  4. String? logFilePath,
  5. String? remoteEndpoint,
  6. LucidHttpHeaders? httpHeaders,
  7. int maxSizeFile = 10 * 1024 * 1024,
  8. int maxFile = 5,
  9. String dateFormat = 'yyyy-MM-dd HH:mm:ss.SSS',
  10. bool includeStackTrace = false,
  11. bool enableAsync = true,
  12. Duration flushInterval = const Duration(seconds: 5),
  13. List<LucidLogOutput> outputs = const [LucidLogOutput.console],
  14. String? customFormat,
})

Implementation

LucidLoggerConfig({
  this.minLevel = LucidLogLevel.info,
  this.enableColors = true,
  this.format = LucidLogFormat.detailed,
  this.logFilePath,
  this.remoteEndpoint,
  this.httpHeaders,
  this.maxSizeFile = 10 * 1024 * 1024, // 10MB
  this.maxFile = 5,
  this.dateFormat = 'yyyy-MM-dd HH:mm:ss.SSS',
  this.includeStackTrace = false,
  this.enableAsync = true,
  this.flushInterval = const Duration(seconds: 5),
  this.outputs = const [LucidLogOutput.console],
  this.customFormat,
});