Implement a command-line tool /app/logq that queries a custom log file /app/logs/events.log based on…
Implement a command-line tool /app/logq that queries a custom log file /app/logs/events.log based on…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input file format: - Tab-separated values with exactly 4 columns…
The task
**Input file format:** - Tab-separated values with exactly 4 columns per line (no header): `timestamp\tevent_type\tuser_id\tpayload` - Lines can be terminated with LF or CRLF. - Empty lines must be skipped. - Lines with fewer or more than 4 tab-separated fields must be silently skipped (malformed lines). - Timestamps…