Create a command-line tool /app/logparser that reads a log file and produces a summary report. The tool must:
Create a command-line tool /app/logparser that reads a log file and produces a summary report. The tool must:: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Section 1: Level Counts One line per level in descending order of severity: FATAL, ERROR, WARN, INFO…
The task
**Section 1: Level Counts** One line per level in descending order of severity: FATAL, ERROR, WARN, INFO, DEBUG, TRACE. Format: `LEVEL: count`. Only include levels with count > 0. If no valid entries at all, output a single line: `No valid entries found.` and STOP (no further sections).
Part of ai-and/termgrade-environments.