Create a command-line tool /app/logq that parses a custom log format and answers timestamp-range queries…
Create a command-line tool /app/logq that parses a custom log format and answers timestamp-range queries…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (read from files passed as arguments): Each line is a log entry in this exact format: <timestamp…
The task
**Input format** (read from files passed as arguments): Each line is a log entry in this exact format: ``` [<timestamp>] <level> <message> ``` - `<timestamp>`: ISO-8601 with timezone offset, e.g., `2025-03-12T14:32:01.123+05:30`. Fractional seconds are optional (0-6 digits). Timezone offset can be `Z` or `±HH:MM` or…
Part of ai-and/termgrade-environments.