def set_log_level(level):
if isinstance(level, str):<EOL><INDENT>level = LOG_NAMES[level.lower()]<EOL><DEDENT>logger.setLevel(level)<EOL>
:param level: the level to set - either a string level name from
              'frame', 'debug', 'info', 'warning', 'error'
              or an integer log level from:
              log.FRAME, log.DEBUG, log.INFO, log.WARNING, log.ERROR