code: public static void bootstrap(final String name, String host, int port, Optional<String> hostName, boolean cleanRootLogger) {
          // initially configure for WARN+ GELF logging
          final GelfAppenderFactory gelf = new GelfAppenderFactory();
          gelf.setIncludeFullMDC(true);
          gelf.setThreshold("WARN");
          gelf.setHost(host);
          gelf.setPort(port);
          gelf.setOriginHost(hostName);
  
          final Logger root = (Logger) LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
  
          if (cleanRootLogger) {
              root.detachAndStopAllAppenders();
          }
  
          root.addAppender(gelf.build(root.getLoggerContext(), name, null, new ThresholdLevelFilterFactory(), new AsyncLoggingEventAppenderFactory()));
      }
docs: Bootstrap the SLF4J root logger with a configured {@link biz.paluch.logging.gelf.logback.GelfLogbackAppender}.
  
  @param name            The facility to use in the GELF messages
  @param host            The host of the Graylog2 server
  @param port            The port of the Graylog2 server
  @param hostName        The (local) hostname used in GELF messages. Defaults to the local hostname.
  @param cleanRootLogger If true, detach and stop all other appenders from the root logger