docs: def get_loglevel(level):
      """
      Set log level.
  
      >>> assert get_loglevel(2) == logging.WARN
      >>> assert get_loglevel(10) == logging.INFO
      """
      try:
          return [logging.DEBUG, logging.INFO, logging.WARN][level]
      except IndexError:
          return logging.INFO