HF RL Explorer

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 Environments: 1,004 executable Linux tasks (Harbor dataset). Input: A log file (UTF-8) with entries in this exact format: YYYY-MM-DDTHH:MM:SS LEVEL message text here…

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…

Part of ai-and/termgrade-environments.