cleanupOldLogs

fun cleanupOldLogs(retentionDays: Int)(source)

Deletes log files older than the specified retention period. Handles both base files (YYYY-MM-DD.json) and suffixed files (YYYY-MM-DD-N.json).

Parameters

retentionDays

Number of days to retain log files