Logging module analogous to that in python stdlib