Write a command-line tool /app/logq that parses a custom log file and answers time-window queries.
Write a command-line tool /app/logq that parses a custom log file and answers time-window queries.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Log format Each line is a record with exactly these pipe-separated fields: TIMESTAMP LEVEL THREAD MESSAGE -…
The task
**Log format** Each line is a record with exactly these pipe-separated fields: `TIMESTAMP|LEVEL|THREAD|MESSAGE` - TIMESTAMP: ISO-8601 with microseconds and explicit timezone offset, e.g. `2024-03-15T08:12:34.123456+02:00` - LEVEL: one of `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL` - THREAD: a non-empty string…
Part of ai-and/termgrade-environments.