code: public static void configureNoLogging() {
      final Logger rootLogger = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);
      final LoggerContext context = rootLogger.getLoggerContext();
  
      // Clear context, removing all appenders
      context.reset();
  
      // Set logging level to OFF
      for (final Logger logger : context.getLoggerList()) {
        if (logger != rootLogger) {
          logger.setLevel(null);
        }
      }
      rootLogger.setLevel(OFF);
    }
docs: Mute all logging.