@Override
    public void uncaughtException(final Thread t, final Throwable e) {
      if (e instanceof VirtualMachineError && failureSetter != null) {
        failureSetter.setFailure((VirtualMachineError) e);
      }
      // Solution to treat the shutdown hook error as a special case.
      // Do not change the hook's thread name without also changing it here.
      if (e instanceof NoClassDefFoundError && !((LoggingThread) t).isTreatExceptionAsFatal()) {
        logger.info(
            "Uncaught exception in thread {} this message can be disregarded if it occurred during an Application Server shutdown. The Exception message was: {}",
            t, e);
      } else {
        String message = MessageFormat.format("Uncaught exception in thread {0}", t);
        logger.fatal(message, e);
      }
      uncaughtExceptionsCount.incrementAndGet();
    }
Sets the logging uncaught exception handler on the given thread.
geode-logging/src/main/java/org/apache/geode/logging/internal/executors/LoggingUncaughtExceptionHandler.java