Skip to content

Stories

Object-Specific Logging Across Python Modules

The logging module defines the standard way of handling log message flow in Python. Although powerful and automagic, its setup can be a bit more involved for not-quite-standard situations, like having a separate logger for each instance of a class. Also, mentioned best practices requires non-intuitive solutions by the using programmer. Read on for some recipes outside the default cookbook.