private void createConsoleAppender() {
    if (customLog4jConfigFilePresent()) {
      return;
    }

    final PatternLayout patternLayout =
        PatternLayout.newBuilder()
            .withConfiguration(this)
            .withDisableAnsi(!BesuCommand.getColorEnabled().orElse(!noColorSet()))
            .withNoConsoleNoAnsi(!BesuCommand.getColorEnabled().orElse(false))
            .withPattern(
                String.join(
                    SEP,
                    dim("%d{yyyy-MM-dd HH:mm:ss.SSSZZZ}"),
                    dim("%t"),
                    colorize("%-5level"),
                    dim("%c{1}"),
                    colorize("%msgc%n%throwable")))
            .build();
    final ConsoleAppender consoleAppender =
        ConsoleAppender.newBuilder().setName("Console").setLayout(patternLayout).build();
    consoleAppender.start();
    this.getRootLogger().addAppender(consoleAppender, null, null);
  }
Instantiates a new Xml extension configuration.

@param loggerContext the logger context
@param configSource the Configuration Source
app/src/main/java/org/hyperledger/besu/cli/logging/XmlExtensionConfiguration.java