Holger Krekel, the main py library developer, introduced the idea of keyword-based logging and of logging producers and consumers.
A log producer is an object used by the application code to send messages to various log consumers.
The log producer object does not have any pre-defined methods associated with it. Instead, you can invoke arbitrarily-named methods. When accessing a brand new method (such as log.cmd or log.post2db), another producer object is returned on the fly, with the name of the method added as a keyword to the already-existent set of keywords.