enthought/enaml — pull request #198 by rkern (2012-10-10 09:37:11+00:00)
Title: BUG: Fix uses of logging to use locally-named loggers.

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.