Make client logging configurable
See original GitHub issueIs 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.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:6 (4 by maintainers)
Top Results From Across the Web
logging.config — Logging configuration — Python 3.11.1 ...
Describing a logging configuration requires listing the various objects to create and the connections between them; for example, you may create a handler...
Read more >Configure database logging client - IBM
To use this file from the command line, enter TOSLOG RUN TPF1RO.conf. This command causes the TPF1R0.conf file to create the client session....
Read more >create-logging-configuration — AWS CLI 1.27.28 Command ...
--client-token (string) · --log-group-arn (string) · --workspace-id (string) · --cli-input-json (string) Performs service operation based on the JSON string ...
Read more >Logging configuration - LaunchDarkly docs
This topic explains how to configure the logging feature. Logging is available for both client-side and server-side SDKs.
Read more >Configuring Logging - Quarkus
This is because during application build, a private static final org.jboss.logging.Logger field is created automatically, in each class that uses the Log API....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The client logging in python still seems non-configurable even after providing the log4cxx config file. Is it possible to configure to stop logging to stdout ?
It seems maybe this got held up due to the potential difficulty of sending log data from C++ up to python. How about just providing options to silence logging, and/or set the log level in the meantime?