pub fn start_cleanup_task(
log_dir: PathBuf,
config: LogRotationConfig,
cancel_token: CancellationToken,
) -> JoinHandle<()>Expand description
Start periodic log cleanup task.
Runs every CODESEARCH_LOG_CLEANUP_INTERVAL_HOURS hours (default: 24)
and removes old log files based on retention_days and max_files.