Goal: Fix the broken Python script /app/merge logs.py so that it correctly merges multiple server log files…
Goal: Fix the broken Python script /app/merge logs.py so that it correctly merges multiple server log files…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - Input: The script is invoked as python3 /app/merge logs.py <output file <input file1…
The task
Exact I/O contract: - Input: The script is invoked as `python3 /app/merge_logs.py <output_file> <input_file1> <input_file2> ...` (at least 2 input files). - Each input file is a text file containing zero or more lines. Each line must be a valid log entry matching the format: `[YYYY-MM-DDTHH:MM:SS.ssssss+HH:MM] LEVEL…
Part of ai-and/termgrade-environments.