public static String generateCentered(final List<String> logLines) {
    final StringBuilder builder = new StringBuilder("\n");
    appendHeader(builder);

    logLines.forEach(
        logLine ->
            builder.append(
                String.format("#%s#\n", StringUtils.center(logLine, MAX_LINE_LENGTH - 2))));

    appendFooter(builder);

    return builder.toString();
  }
Generate logs as centered string.

@param logLines the log lines
@return the string
util/src/main/java/org/hyperledger/besu/util/log/FramedLogMessage.java