Create a command-line tool /app/logquery that parses a custom log format and answers range queries. The tool…
Create a command-line tool /app/logquery that parses a custom log format and answers range queries. The tool…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Log format: Each line is a JSON object with fields: - ts …
The task
**Log format:** Each line is a JSON object with fields: - `ts`: ISO 8601 timestamp (UTC, always with 'Z' suffix, fractional seconds optional, e.g., `2024-01-15T08:30:00.123Z` or `2024-01-15T08:30:00Z`) - `msg`: string (may contain any UTF-8 characters including escaped quotes and newlines as `\n`) - `level`: one of…