Write a command-line tool logquery that extracts and transforms log entries from a custom timestamped log…
Write a command-line tool logquery that extracts and transforms log entries from a custom timestamped log…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input: A log file (UTF-8) with entries in this exact format…
The task
Input: A log file (UTF-8) with entries in this exact format: ``` [YYYY-MM-DDTHH:MM:SS] [LEVEL] message text here ``` Where: - Timestamp is ISO-8601 with seconds, UTC zone indicated by 'Z' suffix (not '+00:00') - LEVEL is one of: DEBUG, INFO, WARN, ERROR, FATAL (exactly these 5, uppercase) - Message is arbitrary text…