private static boolean setLevel(final LoggerConfig loggerConfig, final Level level) {
    final boolean set = !loggerConfig.getLevel().equals(level);
    if (set) {
      loggerConfig.setLevel(level);
    }
    return set;
  }
Sets level to specified logger.

@param loggerName the logger name
@param level the level
util/src/main/java/org/hyperledger/besu/util/Log4j2ConfiguratorUtil.java