import logging from config import LOGLEVEL logging.getLogger().setLevel(LOGLEVEL)