Skip to content

feat: Integrate rich for enhanced logging#11

Open
laromicas wants to merge 1 commit intomasterfrom
feat/rich-logging
Open

feat: Integrate rich for enhanced logging#11
laromicas wants to merge 1 commit intomasterfrom
feat/rich-logging

Conversation

@laromicas
Copy link
Copy Markdown
Owner

This commit introduces the rich library to enhance the project's logging capabilities.

Key changes include:

  • Added rich to project dependencies.
  • Replaced the standard StreamHandler with rich.logging.RichHandler for console output. This provides:
    • Colorized and formatted log messages.
    • Rich tracebacks for exceptions.
    • Markup support in log messages.
  • Updated logging calls in key areas (__main__.py, actions/processor.py) to leverage rich formatting and provide more informative messages.
  • Ensured that file logging remains unchanged, with color codes stripped.
  • Several minor bugs identified during testing were also fixed, improving overall application stability.

This commit introduces the `rich` library to enhance the project's logging capabilities.

Key changes include:
- Added `rich` to project dependencies.
- Replaced the standard `StreamHandler` with `rich.logging.RichHandler` for console output. This provides:
    - Colorized and formatted log messages.
    - Rich tracebacks for exceptions.
    - Markup support in log messages.
- Updated logging calls in key areas (`__main__.py`, `actions/processor.py`) to leverage `rich` formatting and provide more informative messages.
- Ensured that file logging remains unchanged, with color codes stripped.
- Several minor bugs identified during testing were also fixed, improving overall application stability.
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.

1 participant