You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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