Filtering chatty libraries
See original GitHub issueIn general, debug output is what I’m looking for, and I’d like to get it from all dependent libraries. Using the snippet for integrating with the logging library, all is mostly well.
However, if left unchecked, boto3
and requests
are good examples of libraries which are too chatty and log a lot of records that are generally not useful. But it’s not obvious to me how to add loguru-side sinks in such a way that I can specify, x
, y
, and z
packages ought to be filtered to INFO logs, and otherwise unspecified packages ought to continue logging at DEBUG.
Would the canonical method be adding a filter
param to every add
call and doing a separate level comparison at the point where i’m comparing against the logger?
Issue Analytics
- State:
- Created 4 years ago
- Comments:16 (9 by maintainers)
Top Results From Across the Web
Disable chatty filtering of log messages (I ... - Issue Tracker
There is an explanation how it works now, it seems that if an app logs more than 5 message per second, they are...
Read more >Chatty - Twitch Chat Client
Chatty is a chat software specifically made for Twitch, in the spirit of a ... AutoMod support to approve/deny filtered messages; Create Custom...
Read more >Make chatty an official part of GNOME (#454) · Issues - GitLab
Hi GNOME Release Team, I have been working on chatty - A project for providing messaging services like SMS (using hardware...
Read more >Suppress package startup messages - Reprex - Tidyverse
Break your reprex into “chunks”, in the .Rmd sense, and use a special #+ comment to silence messages and/or warnings for the chunk...
Read more >Filter logcat by selected application *and* add custom filter in ...
I hate "your app is chatty" - ...
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
Implemented! Thanks again for your patience and your feedback. It will be available in the
v0.4.0
coming soon. 👍Yeah, don’t worry, I was just genuinely interested to know why you thought it was better to display all logs by default. I guess it entirely depends on the user. I think it might surprise some people to see logs which are not their own, this is why there is the possibility to
.disable()
them.Anyway, I will implement the “dict-filtering” in the next few days and publish a new release shortly after that. 👍