Changing the log level dynamically does not work.
import logging logger = logging.Logger("MyLogger", level=logging.INFO) formatter = logging.Format