Skip to content

Logging outputs to stderr instead of stdout #205

@TimidRobot

Description

@TimidRobot

Description

Logging outputs to sys.stderr instead of sys.stdout.

Expectation

Acceptable

All to sys.stdout. It makes a better default because output can be piped without redirection.

Log level Output
logging.DEBUG sys.stdout
logging.INFO sys.stdout
logging.WARNING sys.stdout
logging.ERROR sys.stdout
logging.CRITICAL sys.stdout

Best

All to sys.stdout except error and critical to sys.stderr. Warning goes to sys.stdout because script execution should not stop on warnings.

Log level Output
logging.DEBUG sys.stdout
logging.INFO sys.stdout
logging.WARNING sys.stdout
logging.ERROR sys.stderr
logging.CRITICAL sys.stderr

Environment

python_version = "3.11"

Additional context

Resolution

  • I would be interested in resolving this bug.

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions