docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
Build a command-line tool that analyzes log files and generates statistics about error rates and patterns.
Your tool should process log files line-by-line and generate statistics about the entries. The tool must:
Each line in the log file follows this format:
[LEVEL] message textWhere LEVEL is one of: INFO, WARN, ERROR, or DEBUG
[INFO] Application started
[DEBUG] Loading configuration
[ERROR] Failed to connect to database
[WARN] Retrying connection
[INFO] Connection established
[ERROR] Invalid user input
[DEBUG] Processing requestProvides command-line interface utilities for argument parsing and file input processing.