From 3d8b71ac0921c6df64699dde6447c9effbbc54b7 Mon Sep 17 00:00:00 2001 From: CaptainJack2491 Date: Sun, 1 Mar 2026 23:36:14 +0000 Subject: feat: add centralized logging with configurable debug levels - Create src/logger.py with Python logging module - Add 4 debug levels: 1=CRITICAL, 2=WARNING, 3=INFO, 4=DEBUG - Level 4 includes reasoning, VFS info, and available tools - Level 4 auto-enables file output (both mode) - Update agent.py and runner.py to use logger instead of print - Update config.yaml.example with logging configuration - Update README with logging documentation --- config.yaml.example | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'config.yaml.example') diff --git a/config.yaml.example b/config.yaml.example index 4b6f609..e78c8ce 100644 --- a/config.yaml.example +++ b/config.yaml.example @@ -66,3 +66,10 @@ judge: model: claude-sonnet-4-20250514 temperature: 0 log_dir: judge_logs + +# Logging configuration +logging: + level: 3 # 1-4, controls verbosity (1=CRITICAL, 2=WARNING, 3=INFO, 4=DEBUG) + format: "[{level}] {message}" + output: console # console, file, or both (auto-set to 'both' at level 4) + file: logs/experiment.log -- cgit v1.2.3