logging

The standard library module for recording what a program is doing, with levels such as DEBUG, INFO, WARNING and ERROR, instead of scattering print calls.

In more detail

Log messages can be filtered by level and sent to the screen or a file without changing the code that writes them. It is the grown-up replacement for debug prints in long-running programs.

Related terms

Taught in

References