enthought/enaml — pull request #197 by rkern (2012-10-10 09:36:11+00:00)
Title: Fix logging

This PR fixes the use of logging to follow accepted best practice for libraries. Namely, each module will have its own logger configured with its `__name__`. This establishes a hierarchy of loggers starting with `'enaml'`. Configuring handlers for `'enaml'` will handle all sub-loggers in the enaml package. A `NullHandler` is attached to the `'enaml'` root logger to silence the (acknowledged) ill-conceived misfeature of printing out when a logging message is sent to a logger without a handler. This is considered best practice for libraries. Logging can be configured in any of the normal means documented in the standard library documentation.