Skip to content

Logging outputs to stderr instead of stdout #205

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 levelOutput
logging.DEBUGsys.stdout
logging.INFOsys.stdout
logging.WARNINGsys.stdout
logging.ERRORsys.stdout
logging.CRITICALsys.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 levelOutput
logging.DEBUGsys.stdout
logging.INFOsys.stdout
logging.WARNINGsys.stdout
logging.ERRORsys.stderr
logging.CRITICALsys.stderr

Environment

python_version = "3.11"

Additional context

Resolution

  • I would be interested in resolving this bug.

Metadata

Metadata

Labels

Type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions