Note It is strongly advised that you do not add any handlers other than NullHandler to your library’s loggers. This is because the configuration of handlers is the prerogative of the application developer who uses your library. The application developer knows their target audience and what handlers are most appropriate for their application: if you add handlers ‘under the hood’, you might well interfere with their ability to carry out unit tests and deliver logs which suit their requirements.
The library should not attach a new handler to a logger implicitly. Anyconfig does that during import which is very nasty:
https://docs.python.org/2/howto/logging.html#configuring-logging-for-a-library