You are given a script /app/merge logs.py that merges multiple timestamped log files into a single unified…
You are given a script /app/merge logs.py that merges multiple timestamped log files into a single unified…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The script reads all .log files from /app/logs/ (non-recursive). - Each log file has lines…
The task
Input contract: - The script reads all `.log` files from `/app/logs/` (non-recursive). - Each log file has lines of the format: `[YYYY-MM-DDTHH:MM:SS] message` (ISO 8601 without timezone, 24-hour, zero-padded). - Lines within a single file are already sorted ascending by timestamp. - The script writes merged output…
Part of ai-and/termgrade-environments.