Nice to be using the logging module. This changes global state though, not normally what a lib should do. Have you thought about this?