FileLogHandler constructor
FileLogHandler({})
Implementation
FileLogHandler({
required String filePath,
int maxFileSizeBytes = 5 * 1024 * 1024,
int maxBackupCount = 5,
bool rotateOnSize = true,
bool rotateDaily = false,
bool formatJson = true,
LogLevel minimumLevel = LogLevel.debug,
}) : _logFile = File(filePath),
_maxFileSizeBytes = maxFileSizeBytes,
_maxBackupCount = maxBackupCount,
_rotateOnSize = rotateOnSize,
_rotateDaily = rotateDaily,
_formatJson = formatJson,
_minimumLevel = minimumLevel,
_lastRotationDate = DateTime.now() {
_initialize();
}