Added the logging.getLevel function, to normalize user input to a valid log level.