Skip to content

Add persistent logging for warnings and errors#48

Merged
raymondcen merged 3 commits intomainfrom
feat/improve-logging
Mar 15, 2026
Merged

Add persistent logging for warnings and errors#48
raymondcen merged 3 commits intomainfrom
feat/improve-logging

Conversation

@SeanClay10
Copy link
Collaborator

Summary

Adds persistent warning/error logging across the pipeline using Python's standard logging module. All existing CLI output is unchanged. Warnings and errors now additionally write to a rotating log file that persists between runs.

Changes

  • Add src/utils/logging_config.py — configures persistent file-based logging for the project
  • Entry-point scripts opt in to logging by calling setup_logging() at startup
  • All warning and error sites now write to the log file in addition to printing to the terminal

Behaviour

  • Log file: logs/fracfeed.log, rotating at 5 MB, 5 backups kept
  • Only WARNING and above is persisted

@raymondcen raymondcen merged commit 250ae8b into main Mar 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants