Skip to content

Make client logging configurable #4234

@grantwwu

Description

@grantwwu

Is your feature request related to a problem? Please describe.
The Python and Go client libraries log - a lot. It's annoying especially if you're trying to use a form of structured logging, or just debug something you know is unrelated to Pulsar.

Describe the solution you'd like
At bare minimum, there should be a way to just turn it off.

A more complete solution would allow configuring the logger in a way idiomatic to each language. For example, integrating with Python logging. I'm not 100% sure how.

Another option would be to allow redirecting the logs to a file instead of polluting stderr.

Describe alternatives you've considered
Not sure if there's a good alternative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/featureThe PR added a new feature or issue requested a new feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions