Goal: Create a command-line tool at /app/logcrunch that processes a UTF-8 log file and outputs a fixed-width…
Goal: Create a command-line tool at /app/logcrunch that processes a UTF-8 log file and outputs a fixed-width…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Exact I/O contract: - Input: single argument, path to a UTF-8 log file. File may be large (stream, don't…
The task
Exact I/O contract: - Input: single argument, path to a UTF-8 log file. File may be large (stream, don't load entirely into memory). Each line is a log entry. - Entry format: `TIMESTAMP | LEVEL | COMPONENT | MESSAGE` - TIMESTAMP: ISO 8601 with optional fractional seconds and timezone. Must handle:…
Part of ai-and/termgrade-environments.