docs: private static void initializeLogFactory() {
      ServiceLoader<LogFactory> loader = ServiceLoader.load(LogFactory.class);
      for (LogFactory lf : loader) {
        logFactory = lf;
        log("New instance, using: " + logFactory.getClass().getName());
        return;
      }
      try {
        final org.slf4j.ILoggerFactory lf = org.slf4j.LoggerFactory.getILoggerFactory();
        logFactory = new LogFactory() {
          @Override
          public Log getLog(String s) {
            return new Slf4jLogger(lf.getLogger(s));
          }
        };
        log("New instance, using SLF4J logging");
        return;
      } catch (NoClassDefFoundError ignore) {
      }
      try {
        final org.apache.commons.logging.LogFactory cl =
          org.apache.commons.logging.LogFactory.getFactory();
        logFactory = new LogFactory() {
          @Override
          public Log getLog(String s) {
            return new CommonsLogger(cl.getInstance(s));
          }
        };
        log("New instance, using commons logging");
        return;
      } catch (NoClassDefFoundError ignore) {
      }
      logFactory = new LogFactory() {
        @Override
        public Log getLog(String s) {
          return new JdkLogger(Logger.getLogger(s));
        }
      };
      log("New instance, using JDK logging");
    }