question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make client logging configurable

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:5
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
tiwanshcommented, Feb 19, 2020

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 ?

2reactions
rosejncommented, Sep 29, 2020

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found