Replies: 3 comments 7 replies
-
Not sure if I understand the question correctly. Do you want to suppress / hide the logs? Would perhaps something like python richtest.py 2>error.log or python richtest.py 2>/dev/null solve your problem? |
Beta Was this translation helpful? Give feedback.
-
no, unfortunately not (i could just change the log-level for that case)... this seems to work with |
Beta Was this translation helpful? Give feedback.
-
Rich will actually redirect stderr. If you change your log to a I think what is happening is that the logger keeps a reference to the stderr, and ignores RIch's proxy. You might want to try writing a handler that gets |
Beta Was this translation helpful? Give feedback.
-
While this is similar to #1317 - it's actually not the same, as i'm not looking to also use rich for logging at this point.
is it possible to use the rich progressbar - with random logging to stderr - without using rich.logging/loghandlers?
Output:
This is possible in progressbar2 by wrapping stdout/stderr streams - but i haven't found this possibility in rich just yet.
Beta Was this translation helpful? Give feedback.
All reactions