Write a command-line tool logq that queries a custom log format. The tool is invoked as:
Write a command-line tool logq that queries a custom log format. The tool is invoked as:: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). The log file is a text file where each record consists of exactly one line: a timestamp followed by a pipe followed by a JSON…
The task
The log file is a text file where each record consists of exactly one line: a timestamp followed by a pipe `|` followed by a JSON object, terminated by a newline. Timestamps are in ISO 8601 format with seconds precision and always in UTC (`YYYY-MM-DDTHH:MM:SSZ`). The JSON object contains at least a `"msg"` field…
Part of ai-and/termgrade-environments.