PROGRAMMING

Stop Using “Print” and Start Using “Logging”

How to use Python Logging library tools for tracking code events and debugging

Naser Tamimi
Towards Data Science
6 min readFeb 15, 2021

--

Image by the author.

Logging is a popular solution for tracking events in a code or debugging. Many of us (Python programmers and data scientists) have this bad habit of using print() to debug and track events in our codes.

--

--