Create a command-line tool /app/process logs that parses a server log file, transforms timestamps to…
Create a command-line tool /app/process logs that parses a server log file, transforms timestamps to…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - The tool reads a single log file from the path given as the first argument. - The second…
The task
**Input contract:** - The tool reads a single log file from the path given as the first argument. - The second argument is a severity threshold: one of `DEBUG`, `INFO`, `WARN`, `ERROR`, `FATAL` (case-sensitive). - Severity order: DEBUG < INFO < WARN < ERROR < FATAL. - Each line in the log file has format:…
Part of ai-and/termgrade-environments.