Suggestion: optionally redirect console logging to tqdm.write #786
Labels
c1-quick 🕐
Complexity low
p3-enhancement 🔥
Much new such feature
submodule ⊂
Periphery/subclasses
to-merge ↰
Imminent
Projects
Milestone
This is somewhat related to #296, which is about stdout and stderr.
I believe the proposed example to redirect stdout and stderr doesn't work with logging, because it will already have saved the reference to stdout and stderr.
This seems to be a common "problem" with many related snippets. Rather than copy and pasting an example, it might be worth to have an option include with
tqdm
?Here is one possible solution:
And it could be used like this:
This is just an example.
(I could also provide tests for the above implementation if it's of any use)
The text was updated successfully, but these errors were encountered: