Skip to content

Log debug and informational messages to stderr only #6758

@chrahunt

Description

@chrahunt

What's the problem this feature will solve?

Commands that generate output for the user (pip list, pip freeze) must be concerned with debug output.

Describe the solution you'd like

As mentioned in #6099:

  1. all log messages should go to stderr instead of stdout
  2. command API related output should use a dedicated interface that outputs to stdout

Any issue that seeks to make the CLI more usable would benefit from this change. This also avoids issues like #6024.

Alternative Solutions

Originally, ad-hoc redirection of logger output to stderr was used to preserve command output. This could be used again, but it would make logging output from commands inconsistent in pip.

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedFor requesting inputs from other members of the communitystate: awaiting PRFeature discussed, PR is neededtype: enhancementImprovements to functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions