docs: def logging_level(level):
      """
      Temporarily modify param's logging level.
      """
      level = level.upper()
      levels = [DEBUG, INFO, WARNING, ERROR, CRITICAL, VERBOSE]
      level_names = ['DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL', 'VERBOSE']
  
      if level not in level_names:
          raise Exception("Level %r not in %r" % (level, levels))
  
      param_logger = get_logger()
      logging_level = param_logger.getEffectiveLevel()
      param_logger.setLevel(levels[level_names.index(level)])
      try:
          yield None
      finally:
          param_logger.setLevel(logging_level)