Module 18 gave you a first look at logging. For debugging, the real power comes from two ideas. Loggers form a tree, so that a message from one part of a program reaches the handlers that you set up at the top. And the configuration is separate from the calls, so that you can switch from a quiet log to a detailed one without touching the code. This lesson shows the tree, the handlers and formatters, and how to write the whole set-up as data.
More lessons in Complete Python Programming