Goal: Create a command-line tool logq that parses a custom log format and answers time-range queries with…
Goal: Create a command-line tool logq that parses a custom log format and answers time-range queries with…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: The log file is a text file where each line is one entry in this exact format: YYYY-MM-DD…
The task
**Input format:** The log file is a text file where each line is one entry in this exact format: ``` YYYY-MM-DD HH:MM:SS.mmm±HH:MM [LEVEL] message ``` - Timestamp: date, space, time with milliseconds (3 digits), timezone offset as ±HH:MM (e.g., `+05:30` or `-08:00` or `+00:00`), no seconds in offset - Level: one of…
Part of ai-and/termgrade-environments.