For this to be true, I think you need a:
from logging import DEBUG, INFO, WARNING, ERROR, CRITICAL somewhere higher up.