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.

RFE: allow to selectively disable loggers from command-line

See original GitHub issue

A common debugging strategy is to study the logs. But sometimes the program issues excessive logging messages, necessitating the selective disabling of babbler loggers.

This SO captures the crux & solution of this Request For Enhancement: https://stackoverflow.com/a/57002853/548792

Although the proposed SO solution of a new --disable-log option works perfectly fine, it is annoying to have to patch every new project, plus, it does not support auto-completion e.g. on bash.

  • Would it make sense to include such capability into core code?

In any case, I’m suggesting the new option to be called --logger-disabled, to fit with the existing option names starting with --log-....

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ankostiscommented, Oct 10, 2022

Please, be my guest.

0reactions
lovetheguitarcommented, Dec 13, 2022

@nicoddemus 7.2 is released now, but somehow this change is not part of it, contrary to your comment in #7873?

Please let me know when this is planned to be released, or what is missing so @itxasos23 or myself could finish this. 😸 Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

1542326 – [RFE] Ability to disable listing projects when ...
Bug 1542326 - [RFE] Ability to disable listing projects when logging into a cluster from command line. Summary: [RFE] Ability to disable listing...
Read more >
Disabling specific logger in pytest - python - Stack Overflow
This can be done by setting --log-cli-level=DEBUG . However, this turns on messages from all code, also pdfplumber - which is very verbose...
Read more >
Logging Cookbook — Python 3.11.1 documentation
Let's say you want to log to console and file with different message formats and in differing circumstances. Say you want to log...
Read more >
Apache log4j 1.2 - Short introduction to log4j
The ability to selectively enable or disable logging requests based on their logger is only part of the picture. Log4j allows logging requests...
Read more >
Untitled
Bump verison to 1.3.8.4-10 - Resolves: Bug 1614501 - Disable nunc-stans by ... Resolves: #1493181 - RFE: mod_ssl: allow sending multiple CA names...
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