Create a command-line tool /app/logquery that parses a custom log format and answers queries.
Create a command-line tool /app/logquery that parses a custom log format and answers queries.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: A log file where each line is either: - A log entry: TIMESTAMP LEVEL MESSAGE - A comment/blank line (starts…
The task
**Input format:** A log file where each line is either: - A log entry: `[TIMESTAMP] [LEVEL] MESSAGE` - A comment/blank line (starts with `#` or is empty) - ignore these
Part of ai-and/termgrade-environments.