HF RL Explorer

Write a Python script log analyzer.py that reads one or more log files and produces a single strict JSON…

Write a Python script log analyzer.py that reads one or more log files and produces a single strict JSON…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The script receives file paths as command-line arguments: python log analyzer.py <file1…

The task

**Input contract:** - The script receives file paths as command-line arguments: `python log_analyzer.py <file1> <file2> ...` - Each file is a text file where each line is a log entry. The format is: ``` TIMESTAMP [LEVEL] MESSAGE ``` - TIMESTAMP: ISO 8601 format, exactly `YYYY-MM-DDTHH:MM:SS` (no timezone, no…

Part of ai-and/termgrade-environments.