Create a command-line tool at /app/querylog that parses a custom log format and answers time-range queries.
Create a command-line tool at /app/querylog that parses a custom log format and answers time-range queries.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Log format specification: - Each line is a record with -separated fields: TIMESTAMP LEVEL THREAD MESSAGE -…
The task
**Log format specification:** - Each line is a record with `|`-separated fields: `TIMESTAMP|LEVEL|THREAD|MESSAGE` - TIMESTAMP is ISO 8601 with microseconds and timezone: `YYYY-MM-DDTHH:MM:SS.ffffff+HH:MM` - LEVEL is one of: `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL` - THREAD is a non-empty string (no `|`…
Part of ai-and/termgrade-environments.