def set_loglevel(level): """ :param level: Log level, e.g. logging.INFO and logging.WARN. """ LOGGER.setLevel(level)