Create a command-line tool /app/loganalyzer (Python script) that reads a system log file and produces a…
Create a command-line tool /app/loganalyzer (Python script) that reads a system log file and produces a…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input : A log file path passed as the only argument. Each line is a log entry in format: TIMESTAMP LEVEL…
The task
**Input**: A log file path passed as the only argument. Each line is a log entry in format: `TIMESTAMP LEVEL MESSAGE` where: - TIMESTAMP is ISO-8601 with timezone (either `Z` for UTC, or `+HH:MM`/`-HH:MM` offset) - LEVEL is one of: `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL` - MESSAGE is the rest of the line (may be…
Part of ai-and/termgrade-environments.