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-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input format : A log file where each line is either: - A…
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)