Example code implementing the default Python logging-module.