Hacker News new | ask | show | jobs
by Jamie9912 1456 days ago
loguru perhaps
3 comments

A few months ago I built a project and wanted to add logging. After searching around, I ended up selecting loguru and it definitely is a nicer user experience. But I also didn't really love it, for reasons that I don't recall now. I would look to it again, simply for lack of a better choice.

Sadly, my social media is subscribed to by pretty heavy hitters in the Python community, but when I asked about the best logging for python it was all crickets. Maybe that says something. :-)

This is the only library I that both can use out of the box and extend to my needs.
One missing feature of loguru is filter by logging levels. You can still get around it by modifying an internal variable that you can specifically not to
What do you mean? You just add a custom handler. It's like a few lines to write a handler that does some action on specific levels.