Write a command-line tool /app/logcrunch (Python script, no extension) that reads a UTF-8 log file and…
Write a command-line tool /app/logcrunch (Python script, no extension) that reads a UTF-8 log file and…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Goal : Produce a plain-text report showing, for each unique (endpoint, minute, error code) triple with at least…
The task
**Goal**: Produce a plain-text report showing, for each unique (endpoint, minute, error_code) triple with at least one failure, the count of failures and the average latency (rounded to 2 decimal places). The report must be sorted and formatted exactly as specified.
Part of ai-and/termgrade-environments.