Add centralized structured logging#68
Merged
Merged
Conversation
- Create logging_utils.py with StructuredFormatter (JSON) and HumanReadableFormatter - Console output uses human-readable format with timestamps - File output uses JSON with ISO 8601 timestamps and context fields - Support for context fields: task_id, config, duration_ms, tokens_used, cost_usd - LogContext context manager for adding fields to log records - Integrate into main.py and run_all.py entry points - Add 17 unit tests for logging utilities
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a centralized logging module with structured JSON output for better observability and debugging.
Features
2026-01-15 14:32:50 | INFO | ...)Console Output
File Output (JSON)
{"timestamp": "2026-01-15T20:32:50.397216+00:00", "level": "INFO", "logger": "__main__", "message": "Running task 66e6c45b"}Files Changed
src/arc_agi_benchmarking/utils/logging_utils.py- New logging modulemain.py- Integrated structured loggingcli/run_all.py- Integrated structured loggingsrc/arc_agi_benchmarking/tests/test_logging_utils.py- 17 unit testsTest plan