Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Lauszus
Copy link
Owner

@Lauszus Lauszus commented Sep 21, 2025

No description provided.

@github-actions
Copy link

github-actions bot commented Sep 21, 2025

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/pyblhost
  logger.py
  pyblhost.py 965-976, 994-999
Project Total  

This report was generated by python-coverage-comment-action

@Lauszus Lauszus added this to the 1.7.0 milestone Sep 21, 2025
@Lauszus Lauszus requested a review from Copilot September 21, 2025 21:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements colored logging output by introducing a custom ColoredFormatter class that applies ANSI color codes to log messages based on their severity level. The implementation follows standard color conventions with INFO messages displayed in light green when color support is detected.

  • Adds a comprehensive colored logging system with ANSI escape code support
  • Integrates colored formatting into the CLI logger with automatic color detection
  • Updates upload progress bar to use consistent light green coloring for INFO labels

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/pyblhost/logger.py New module implementing ColoredFormatter and EscapeCodes classes for colored logging with automatic terminal detection
src/pyblhost/pyblhost.py Integrates colored formatter into CLI logging and updates progress bar to use consistent green INFO coloring
tests/test_logger.py Comprehensive test suite covering all aspects of the colored logging implementation

@Lauszus Lauszus merged commit f6e117e into main Sep 21, 2025
3 checks passed
@Lauszus Lauszus deleted the feature/info_color branch September 21, 2025 21:51
@Lauszus Lauszus modified the milestones: 1.7.0, 1.7.1 Sep 21, 2025
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