Skip to content

Conversation

@vkarak
Copy link
Contributor

@vkarak vkarak commented Jan 19, 2019

  • PrettyPrinter is now a proxy to the ReFrame's logger and takes particular care in formatting specially the progress output.
  • The general framework logger is now also capable of colorizing its output. This allows errors and warnings to be colorized when logged from anywhere in the framework. It also prefixes errors and warnings with the program name.

This is useful for #623.

- `PrettyPrinter` is now a proxy to the ReFrame's logger and takes
  particular care in formatting specially the progress output.
  It also prefixes errors and warnings with the program name.
- The general framework logger is now also capable of colorizing its
  output. This allows errors and warnings to be colorized when logged
  from anywhere in the framework.
@codecov-io
Copy link

Codecov Report

Merging #654 into master will increase coverage by 0.02%.
The diff coverage is 91.83%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #654      +/-   ##
=========================================
+ Coverage   91.68%   91.7%   +0.02%     
=========================================
  Files          74      74              
  Lines        9256    9263       +7     
=========================================
+ Hits         8486    8495       +9     
+ Misses        770     768       -2
Impacted Files Coverage Δ
reframe/frontend/executors/__init__.py 98.07% <100%> (ø) ⬆️
reframe/frontend/printer.py 87.5% <100%> (-0.82%) ⬇️
reframe/frontend/argparse.py 98.38% <100%> (+0.11%) ⬆️
reframe/core/logging.py 84.15% <80%> (-0.16%) ⬇️
reframe/frontend/cli.py 80.68% <80%> (+0.06%) ⬆️
reframe/utility/__init__.py 93.43% <95.23%> (+0.21%) ⬆️
reframe/core/config.py 84.34% <0%> (+1.73%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e5ef7fd...8275327. Read the comment docs.

@codecov-io
Copy link

codecov-io commented Jan 19, 2019

Codecov Report

Merging #654 into master will increase coverage by 0.05%.
The diff coverage is 96.84%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #654      +/-   ##
==========================================
+ Coverage   91.68%   91.73%   +0.05%     
==========================================
  Files          74       76       +2     
  Lines        9256     9302      +46     
==========================================
+ Hits         8486     8533      +47     
+ Misses        770      769       -1
Impacted Files Coverage Δ
unittests/test_logging.py 98.48% <100%> (ø) ⬆️
unittests/test_color.py 100% <100%> (ø)
reframe/frontend/executors/__init__.py 98.07% <100%> (ø) ⬆️
reframe/utility/__init__.py 93.25% <100%> (+0.03%) ⬆️
reframe/frontend/printer.py 85.71% <100%> (-2.6%) ⬇️
reframe/frontend/argparse.py 98.38% <100%> (+0.11%) ⬆️
reframe/utility/color.py 100% <100%> (ø)
reframe/frontend/cli.py 80.68% <80%> (+0.06%) ⬆️
reframe/core/logging.py 84.26% <83.33%> (-0.05%) ⬇️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e5ef7fd...3aca1e1. Read the comment docs.

@vkarak vkarak changed the title Refactor PrettyPrinter and enable colors in the general logger [refactor] Refactor PrettyPrinter and enable colors in the general logger Jan 19, 2019
@vkarak vkarak changed the title [refactor] Refactor PrettyPrinter and enable colors in the general logger [wip] [refactor] Refactor PrettyPrinter and enable colors in the general logger Jan 21, 2019
@vkarak vkarak force-pushed the refactor/colorize-logger branch from 9a86deb to adf1e00 Compare January 21, 2019 09:09
@vkarak vkarak changed the title [wip] [refactor] Refactor PrettyPrinter and enable colors in the general logger [refactor] Refactor PrettyPrinter and enable colors in the general logger Jan 21, 2019
Copy link
Contributor

@teojgo teojgo left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@victorusu victorusu left a comment

Choose a reason for hiding this comment

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

lgtm

@victorusu
Copy link
Contributor

@vkarak and @teojgo, Can I merge?

@vkarak
Copy link
Contributor Author

vkarak commented Jan 22, 2019

@victorusu Yeah, sure! I wanted to do that yesterday.

@vkarak vkarak merged commit 4dcb29b into reframe-hpc:master Jan 22, 2019
@vkarak vkarak deleted the refactor/colorize-logger branch January 22, 2019 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants