Create a command-line tool /app/logq that processes a custom log format and answers structured queries.
Create a command-line tool /app/logq that processes a custom log format and answers structured queries.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format : A log file where each record spans exactly 3 lines: TS: <timestamp MSG: <message -- - Timestamp…
The task
**Input format**: A log file where each record spans exactly 3 lines: ``` TS: <timestamp> MSG: <message> -- ``` - Timestamp format: `YYYY-MM-DD HH:MM:SS.mmm ±HH:MM` (year-month-day, space, hour:minute:second dot milliseconds, space, plus/minus, hour:minute offset) - Message: any text (may be empty, may contain…
Part of ai-and/termgrade-environments.