Create a command-line tool /app/process logs that reads a log file and outputs an aggregated summary.
Create a command-line tool /app/process logs that reads a log file and outputs an aggregated summary.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: - Path to a log file provided as the only CLI argument. - Each line in the file is either: - A log…
The task
**Input format:** - Path to a log file provided as the only CLI argument. - Each line in the file is either: - A log entry: `TIMESTAMP LEVEL MESSAGE` - Empty line (skip) - Comment line starting with `#` (skip) - TIMESTAMP is in ISO-8601 format but may use either `Z` suffix OR `+00:00`/`-HH:MM` offset. Fractional…
Part of ai-and/termgrade-environments.