Write a command-line tool logquery that parses a custom log format and answers structured queries about log…
Write a command-line tool logquery that parses a custom log format and answers structured queries about log…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input: A log file where each line has the format: TIMESTAMP LEVEL MESSAGE - TIMESTAMP is in ISO-8601…
The task
**Input:** A log file where each line has the format: `TIMESTAMP|LEVEL|MESSAGE` - TIMESTAMP is in ISO-8601 format, **always with a trailing `Z`** (UTC indicator), e.g., `2024-01-15T08:30:45.123Z` - LEVEL is one of: `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL` - MESSAGE is a free-text string that may contain `|`…
Part of ai-and/termgrade-environments.