HF RL Explorer

Write a CLI tool logquery that reads a custom log format from stdin and answers queries about it. The tool…

Write a CLI tool logquery that reads a custom log format from stdin and answers queries about it. The tool…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): Lines of tab-separated values: timestamp<TAB level<TAB message . Timestamp is ISO 8601…

The task

**Input format (stdin):** Lines of tab-separated values: `timestamp<TAB>level<TAB>message`. Timestamp is ISO 8601 with timezone offset (e.g., `2024-01-15T08:30:00+01:00` or `2024-01-15T08:30:00Z`). Level is one of `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL`. Message is arbitrary UTF-8 text. Lines may be empty…

Part of ai-and/termgrade-environments.