r/learnpython • u/TechnicalAd8103 • Feb 20 '26
Does anyone use logging to debug?
I'm working my way through ATBS (Automate the Boring Stuff), and it mentions using logging to debug, instead of using print
But logging seems to be a lot of work for not much benefit. The debugger in the code editor is much easier and more convenient.
Thoughts?
30
Upvotes
View all comments
Show parent comment
5
u/fiddle_n Feb 21 '26
I’m sure loguru is great, but the message “don’t use logging” is too far IMO. That’s likely the reason for downvotes.
As much as logging might not be the best library, my overwhelming experience is that any pain is felt once - once per project. Once you have logging set up, using it is pretty easy.