Logging levels dont work for debug and info
Logging levels dont work for debug and info Question: I use the following code in my __init__ class: # Create a custom logger self.logger = logging.getLogger(__name__) # Create handlers self.handler_cmdline = logging.StreamHandler() self.handler_file = logging.FileHandler(self.logfile) self.handler_cmdline.setLevel(logging.DEBUG) self.handler_file.setLevel(logging.INFO) # Create formatters and add it to handlers log_format = logging.Formatter(fmt=’%(asctime)s – %(name)s – %(<levelname)s – %(message)s’, datefmt=’%Y-%m-%d …