Build a command-line tool /app/logq that parses a custom log format and answers queries.
Build a command-line tool /app/logq that parses a custom log format and answers queries.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Log format (file provided as argument): - One record per line, ending with LF ( \n ). - Each line is a sequence of…
The task
**Log format (file provided as argument):** - One record per line, ending with LF (`\n`). - Each line is a sequence of pipe-delimited fields: `TIMESTAMP|LEVEL|MESSAGE` - TIMESTAMP: ISO-8601 with microseconds and explicit timezone offset, always 6 decimal digits: `2024-03-15T08:12:34.123456+05:30` - LEVEL: one of…
Part of ai-and/termgrade-environments.