RichHandler logging interaction with ProgressBar #2900
-
ProgressBar() does not seem to play well with logging using RichHandler(). Logger output appears at the right edge of the ProgressBar display, rather than on a new line below the ProgressBar. It's not clear to me whether this is a bug or my misunderstanding of how they should play together. Here's sample code to reproduce the problem:
This results in output that looks like: The desired output would be to have just one progress bar that stays at the bottom while the logger output accumulates above it. Platform Click to expandRunning in Windows 11 using the Terminal. Here's the output of rich.diagnose:
and the rich version is
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The logging handler and the Progress should use the same Console. |
Beta Was this translation helpful? Give feedback.
The logging handler and the Progress should use the same Console.