LucidLoggerConfig constructor
LucidLoggerConfig({
- LucidLogLevel minLevel = LucidLogLevel.info,
- bool enableColors = true,
- LucidLogFormat format = LucidLogFormat.detailed,
- String? logFilePath,
- String? remoteEndpoint,
- LucidHttpHeaders? httpHeaders,
- int maxSizeFile = 10 * 1024 * 1024,
- int maxFile = 5,
- String dateFormat = 'yyyy-MM-dd HH:mm:ss.SSS',
- bool includeStackTrace = false,
- bool enableAsync = true,
- Duration flushInterval = const Duration(seconds: 5),
- List<
LucidLogOutput> outputs = const [LucidLogOutput.console], - 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,
});