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 processes log files line-by-line and generates a summary report at the end of the file.
The tool should:
Note: A single line may contain multiple keywords (e.g., "ERROR: INFO system"). Count each keyword separately.
During processing, the tool should remain silent. After processing all lines, it should output:
--- Log Summary ---
Total lines: <count>
Errors: <count>
Warnings: <count>
Info: <count>// Main entry point - no exports required for CLI toolProvides command-line interface and streaming input support.