A broken Python script /app/merge logs.py exists. Your task is to fix it.
A broken Python script /app/merge logs.py exists. Your task is to fix it.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The script should: - Read all .log files from /app/logs/ - Each log file contains one or more JSON lines. Each line has exactly the fields…
The task
The script should: - Read all `.log` files from `/app/logs/` - Each log file contains one or more JSON lines. Each line has exactly the fields: `{"ts": "ISO-8601 datetime string", "level": "string", "msg": "string"}` - The script must merge all log entries from all files into a single sorted output - Sort by `ts`…
Part of ai-and/termgrade-environments.