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

Skip to content

Conversation

@epwalsh
Copy link
Member

@epwalsh epwalsh commented Sep 21, 2022

Fixes #411 by implementing our own RichHandler based on https://github.com/Textualize/rich/blob/master/rich/logging.py

The code in our RichHandler is basically the same, except that instead of printing a Table object it just prints a Group object so that wrapping is done how we like it:

image

As you can see in this screenshot, I also made another change. The paths on the right side of the screen are now more informative. Instead of just showing the filename (which can be very ambiguous) we print a path relative to the directory where that module was found.

@epwalsh epwalsh requested review from AkshitaB and dirkgr September 21, 2022 18:36
@epwalsh epwalsh merged commit d3e1891 into main Sep 21, 2022
@epwalsh epwalsh deleted the logging branch September 21, 2022 19:15
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.

Links in logs not clickable when lines are wrapped

2 participants