Write a Python program analyze logs.py that reads one or more log files (paths given as command-line…
Write a Python program analyze logs.py that reads one or more log files (paths given as command-line…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). All other keys must always be present with valid values, even if "errors" is non-empty. The output must be a…
The task
All other keys must always be present with valid values, even if `"errors"` is non-empty. The output must be a single JSON object on one line (no extra whitespace outside strings) with keys in the order: `start`, `end`, `total_lines`, `sessions`, `errors`. JSON strings must be valid UTF-8 encoded. Trailing newline…
Part of ai-and/termgrade-environments.