HF RL Explorer

Write a command-line tool /app/logparser that reads a system-log file and produces a strict JSON report to…

Write a command-line tool /app/logparser that reads a system-log file and produces a strict JSON report to…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input file format: - Lines are either empty, a comment (first non-whitespace character is ), or a log entry…

The task

**Input file format:** - Lines are either empty, a comment (first non-whitespace character is `#`), or a log entry. - Log entry format: `TIMESTAMP [LEVEL] MESSAGE`, where: - `TIMESTAMP` is ISO 8601 UTC with mandatory `Z` suffix: `YYYY-MM-DDTHH:MM:SSZ` (seconds always two digits, zero-padded). Month and day must be…

Part of ai-and/termgrade-environments.