You must implement a CLI tool named lq ("log query") that reads a custom log format from stdin and writes…
You must implement a CLI tool named lq ("log query") that reads a custom log format from stdin and writes…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format (stdin): - One log record per line, fields separated by the character. - Field 0: ISO-8601 UTC…
The task
**Input format (stdin):** - One log record per line, fields separated by the `|` character. - Field 0: ISO-8601 UTC timestamp (always exactly `YYYY-MM-DDTHH:MM:SSZ` format, no fractional seconds, no timezone offset except Z). - Field 1: Log level (exactly one of: TRACE, DEBUG, INFO, WARN, ERROR, FATAL). - Field 2:…
Part of ai-and/termgrade-environments.