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 reads log data from standard input and produces statistical summaries. The tool should process log entries and output analysis results.
The application should:
[LEVEL] message textLog entries will be provided via STDIN, one per line:
[INFO] Application started
[WARN] Configuration file not found, using defaults
[ERROR] Failed to connect to database
[INFO] Server listening on port 3000
[DEBUG] Processing requestThe tool should output a summary in this format:
Log Analysis Summary:
INFO: 2
WARN: 1
ERROR: 1
DEBUG: 1The log levels should be displayed in alphabetical order. If no entries are found, output: No log entries found
[ and ])// No exported API required - this is a CLI tool that reads from stdinProvides command-line interface utilities including standard input processing.