Write a command-line tool /app/query log that reads a log file in a custom format and answers one of three…
Write a command-line tool /app/query log that reads a log file in a custom format and answers one of three…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Log format: Each line has the general structure: TIMESTAMP LEVEL THREAD MESSAGE - Fields are separated by…
The task
**Log format:** Each line has the general structure: ``` TIMESTAMP LEVEL [THREAD] MESSAGE ``` - Fields are separated by exactly one space. - Lines can be empty (only newline) — ignore them. - TIMESTAMP is either: - ISO 8601 with seconds precision: `YYYY-MM-DDTHH:MM:SS` (no timezone, no fractional seconds) - ISO 8601…
Part of ai-and/termgrade-environments.