static void setAllLevels(final String parentLogger, final String level) {
    // 1) get logger config
    // 2) if exact match, use it, if not, create it.
    // 3) set level on logger config
    // 4) update child logger configs with level
    // 5) update loggers
    Level log4JLevel = Level.toLevel(level, null);
    requireNonNull(log4JLevel);
    final LoggerContext loggerContext = getLoggerContext();
    final Configuration config = loggerContext.getConfiguration();
    boolean set = setLevel(parentLogger, log4JLevel, config);
    for (final Map.Entry<String, LoggerConfig> entry : config.getLoggers().entrySet()) {
      if (entry.getKey().startsWith(parentLogger)) {
        set |= setLevel(entry.getValue(), log4JLevel);
      }
    }
    if (set) {
      loggerContext.updateLoggers();
    }
  }
Sets all levels.

@param parentLogger the parent logger
@param level the level
util/src/main/java/org/hyperledger/besu/util/Log4j2ConfiguratorUtil.java