Python Logging for Absolute Beginners

Stop using print statements for debugging and switch to something more advanced

Mike Huls
Towards Data Science
6 min readJun 9, 2022

--

A nice stack of logs (image by Sebastian Pociecha on Unsplash)

Logging is essential to understanding what happens in your application, why it happens and when it happens. Not only can you catch errors more easily, debugging becomes much faster as well since you have a nice cookie crumb trail that leads you right to the problem.

--

--