Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

Logging and Debugging

Python Logging and PEP 282

BOTIE

Programs needed event reporting that could be configured without editing every function that produced a message. PEP 282, created in 2002, proposed named loggers, importance levels and configurable handlers for a shared logging system. Python added logging in version 2.3.

The application can then choose an event destination and detail level while library code describes what happened. A traceback provides different evidence: an exception type and call path. More recorded text does not automatically make either form more useful; the context must explain the operation.

Sources for this history