Goal: Fix the broken Python script /app/log parser.py so it correctly parses a server log file and outputs a…
Goal: Fix the broken Python script /app/log parser.py so it correctly parses a server log file and outputs a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - Input: The script reads /app/data/server.log (UTF-8 encoded, Linux line endings \n…
The task
Exact I/O contract: - Input: The script reads `/app/data/server.log` (UTF-8 encoded, Linux line endings `\n`). - The log format: each line is either: - An event: `TIMESTAMP [LEVEL] MESSAGE` - TIMESTAMP: ISO 8601 format `YYYY-MM-DDTHH:MM:SS+HH:MM` or `YYYY-MM-DDTHH:MM:SSZ` - LEVEL: one of `DEBUG`, `INFO`, `WARN`,…
Part of ai-and/termgrade-environments.