HF RL Explorer

Write a CLI tool logq that reads a structured log file and answers simple queries.

Write a CLI tool logq that reads a structured log file and answers simple queries.: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: - One JSON object per line (JSONL). - Each object has the keys: ts (ISO 8601 timestamp), level (string), msg…

The task

**Input file format:** - One JSON object per line (JSONL). - Each object has the keys: `ts` (ISO 8601 timestamp), `level` (string), `msg` (string), `ctx` (object mapping string->string, may be empty). - Example line: `{"ts":"2025-02-03T12:00:00.000Z","level":"ERROR","msg":"something…

Part of ai-and/termgrade-environments.