import logging logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger("__name__")