Logging
Learn about the importance of logging debug, informational, and error messages.
We'll cover the following
An introduction to logging
Logging is the means by which we keep track of events that occur during the execution of a program. Whether we realize it or not, we’ve all done logging in our programs in one way or another. We all know about the Python print
statement. Every Python programmer starts off debugging by writing print
statements throughout their code to print informational and error messages and display variable values. Let’s take a look at an example.
Get hands-on with 1200+ tech skills courses.