Write a command-line tool logquery that parses a custom log format and answers simple queries. The tool…
Write a command-line tool logquery that parses a custom log format and answers simple queries. The tool…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Log format (custom): Each line is one record: TIMESTAMP LEVEL SOURCE MESSAGE - TIMESTAMP: ISO 8601 format with…
The task
Log format (custom): Each line is one record: `[TIMESTAMP] LEVEL SOURCE MESSAGE` - TIMESTAMP: ISO 8601 format with mandatory microseconds and timezone offset: `YYYY-MM-DDTHH:MM:SS.ffffff+HH:MM` or `YYYY-MM-DDTHH:MM:SS.ffffffZ` - LEVEL: exactly one of `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL` (case-sensitive)…
Part of ai-and/termgrade-environments.