code: def set_level(name, level):
      
      if name is None or name == "" or name == "bench":
          logging.getLogger("bench").setLevel(level)
      loggername = "bench." + name
      logging.getLogger(loggername).setLevel(level)
docs: Set level for given logger
      :param name: Name of logger to set the level for
      :param level: The new level, see possible levels from python logging library