Description
The redirect_stdout option doesn't work when printing messages to stdout using the logging module.
Is there any workaround for this that I am not aware of?
Code
import time
import progressbar
bar = progressbar.ProgressBar(redirect_stdout=True)
for i in bar(range(100)):
logging.warning('Some warning')
time.sleep(0.1)
Description
The
redirect_stdoutoption doesn't work when printing messages to stdout using the logging module.Is there any workaround for this that I am not aware of?
Code