feat: add comprehensive structured logging across project#9
Open
ghostyappbeta[bot] wants to merge 2 commits intomainfrom
Open
feat: add comprehensive structured logging across project#9ghostyappbeta[bot] wants to merge 2 commits intomainfrom
ghostyappbeta[bot] wants to merge 2 commits intomainfrom
Conversation
…try point scripts - Create logger_config.py with setup_logging() and get_logger() functions - Replace all print() calls with structured logger calls in 5 entry scripts - Add logging at key points: startup, iteration progress, errors, completion - Support configurable log levels via LOG_LEVEL environment variable - Support dual output to console (stderr) and optional log file Co-authored-by: Myeongsoo Kim <codingsoo93@gmail.com>
…ith structured logger calls - Add logging to helper scripts: run.py, run_tool.py, run_service.py, parse_log.py, verify_setup.py - Add logging to all morest submodule files: fuzzer, model, validator, utils, ga, generator, experiment_utils - Replace logging.basicConfig in normal_executor.py and mutation_executor.py with per-module loggers - Create morest/logger_config.py as a copy of root logger_config.py for submodule imports - Add setup_logging() calls in entry points: morest/fuzzer.py, parse_log.py - Replace all active print() calls with appropriate logger levels (debug/info/warning/error) - 34 files modified, 42 loggers created across the entire codebase Co-authored-by: Myeongsoo Kim <codingsoo93@gmail.com>
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.
This pull request was generated by @kiro-agent 👻
Comment with /kiro fix to address specific feedback or /kiro all to address everything.
Learn about Kiro autonomous agent
Summary
Replaces all
print()statements across the codebase with Python's built-inloggingmodule, providing structured, configurable logging throughout the project.Changes
New
logger_config.py— centralized logging configuration module providing:setup_logging(name, log_level, log_file)for entry points (console + file handlers)get_logger(name)convenience wrapper for submodules2024-01-15 14:30:00 [INFO] arat-rl: Starting testing...LOG_LEVELenvironment variable support (DEBUG/INFO/WARNING/ERROR)40 files modified across entry points, morest submodule, proxy, and utility scripts
morest.fuzzer,morest.model.method)arat-rl.log)Zero new dependencies — uses only Python stdlib
loggingConfiguration
Set log verbosity via environment variable:
Default level is
INFO. Each entry point also writes to a log file for post-run analysis.