Write a Python script /app/log analyzer.py that reads one or more log files, extracts error entries, and…
Write a Python script /app/log analyzer.py that reads one or more log files, extracts error entries, and…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The script receives one or more file paths as command-line arguments. - Each file is a text…
The task
**Input contract:** - The script receives one or more file paths as command-line arguments. - Each file is a text file with lines in the format: `TIMESTAMP [LEVEL] MESSAGE` - `TIMESTAMP` is ISO‑8601 with either `Z` or `+HH:MM` / `-HH:MM` offset (always present, no space inside the timestamp). - `LEVEL` is one of:…
Part of ai-and/termgrade-environments.