Write a Python program analyze logs.py that reads one or more system log files and produces a strict JSON…
Write a Python program analyze logs.py that reads one or more system log files and produces a strict JSON…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - Program receives any number of log file paths as command-line arguments (at least one). -…
The task
**Input contract:** - Program receives any number of log file paths as command-line arguments (at least one). - Each file is a text file. Lines may end with LF or CRLF. - Each non-empty line is a log entry in this exact format: `[YYYY-MM-DDTHH:MM:SS±HH:MM] LEVEL component: message` - The timestamp is ISO 8601 with…
Part of ai-and/termgrade-environments.