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-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input contract: - The script receives file paths as…
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…