code: public static void stop() {
      final ILoggerFactory loggerFactory = org.slf4j.LoggerFactory.getILoggerFactory();
      if (loggerFactory instanceof LoggerContext) {
        final LoggerContext context = (LoggerContext) loggerFactory;
        context.stop();
      }
      setup.getAndSet(false);
    }
docs: Stops the logging.