Skip to content

Support logging module #101

@d4nst

Description

@d4nst

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions