HF RL Explorer

Create a command-line tool /app/loganalyzer that reads a system-log file and writes a strict JSON report to…

Create a command-line tool /app/loganalyzer that reads a system-log file and writes a strict JSON report to…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input format: A text file where each line is either a log entry or malformed. A valid log entry has the…

The task

**Input format:** A text file where each line is either a log entry or malformed. A valid log entry has the format: `TIMESTAMP [LEVEL] MESSAGE` - TIMESTAMP: `YYYY-MM-DD HH:MM:SS` (24-hour, zero-padded, seconds required) - LEVEL: exactly one of `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL` in square brackets - MESSAGE:…

Part of ai-and/termgrade-environments.