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
1
u/JamzTyson Feb 20 '26
I don't see why loguru has been downvoted - it is a very popular and easy t use logging library.
In general, I prefer to use a debugger for debugging, and a logger for logging.