Implement a command-line tool /app/tool that queries a custom log format.
Implement a command-line tool /app/tool that queries a custom log format.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The tool accepts exactly two positional arguments: 1. A log file path (UTF-8 encoded text file) 2. A query string in a…
The task
**Input contract:** - The tool accepts exactly two positional arguments: 1. A log file path (UTF-8 encoded text file) 2. A query string in a specific format (see below) - The log format is a custom line-oriented format: each line is `TIMESTAMP LEVEL MESSAGE`, where TIMESTAMP is an ISO-8601 datetime with microseconds…
Part of ai-and/termgrade-environments.