Goal: Create a command-line tool logquery that reads a log file in a custom format and outputs matching…
Goal: Create a command-line tool logquery that reads a log file in a custom format and outputs matching…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - The tool is invoked as: logquery <logfile <expression - The log file format: Each line is…
The task
Exact I/O contract: - The tool is invoked as: `logquery <logfile> <expression>` - The log file format: Each line is a JSON object with these fields: - `ts`: ISO 8601 timestamp with timezone (always `+00:00` or `Z` suffix, but may have fractional seconds like `.123456`) - `level`: string, one of `DEBUG`, `INFO`,…
Part of ai-and/termgrade-environments.