Create a command-line program /app/loganalyzer that reads a system log file and outputs a strict JSON report…
Create a command-line program /app/loganalyzer that reads a system log file and outputs a strict JSON report…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input : A system log file path passed as the first argument. The log format is lines like: TIMESTAMP LEVEL…
The task
**Input**: A system log file path passed as the first argument. The log format is lines like: ``` TIMESTAMP [LEVEL] MESSAGE ``` Where: - TIMESTAMP is ISO-8601 UTC with exactly this format: `YYYY-MM-DDTHH:MM:SS.mmmZ` (3-digit milliseconds, literal 'Z' suffix) - LEVEL is one of: `TRACE`, `DEBUG`, `INFO`, `WARN`,…
Part of ai-and/termgrade-environments.