Write a command-line tool /app/loganalyzer (Python script) that reads a system log file and produces a…
Write 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 format : A log file where each line is either: - A timestamped event: YYYY-MM-DDTHH:MM:SS.mmm+ZZ:ZZ LEVEL…
The task
**Input format**: A log file where each line is either: - A timestamped event: `YYYY-MM-DDTHH:MM:SS.mmm+ZZ:ZZ LEVEL [component] message` - A continuation line (no timestamp): starts with whitespace, continues previous message - Empty line (skip) - Comment line: starts with `#` (skip)
Part of ai-and/termgrade-environments.