@Override
    public @NotNull Function<Component, String> plainSerializer() {
      return comp -> {
        final Component translated = GlobalTranslator.render(comp, Locale.getDefault());
        final StringBuilder contents = new StringBuilder();
        ComponentFlattener.basic().flatten(translated, contents::append);
        return contents.toString();
      };
    }
Utility methods relating to creating component loggers.
text-logger-slf4j/src/main/java/net/kyori/adventure/text/logger/slf4j/Handler.java