Setup the logging framework with a basic configuration

def setup_logging(format="%(asctime)s - %(levelname)s - %(message)s", level='INFO'):
    """Setup the logging framework with a basic configuration"""
    try:
        import coloredlogs
        coloredlogs.install(fmt=format, level=level)
    except ImportError:
        logging.basicConfig(format=format, level=level)