Use Python Logging Module
This change makes use of the Logging module to get more detailed
information about the logging.