public int getLogWriterLevel() {
    final Level log4jLevel = logWrapper.getLevel();

    if (log4jLevel == Level.OFF) {
      return NONE.intLevel();
    } else if (log4jLevel == Level.FATAL) {
      return SEVERE.intLevel();
    } else if (log4jLevel == Level.ERROR) {
      return ERROR.intLevel();
    } else if (log4jLevel == Level.WARN) {
      return WARNING.intLevel();
    } else if (log4jLevel == Level.INFO) {
      return INFO.intLevel();
    } else if (log4jLevel == Level.DEBUG) {
      return FINE.intLevel();
    } else if (log4jLevel == Level.TRACE) {
      return FINER.intLevel();
    } else if (log4jLevel == Level.ALL) {
      return ALL.intLevel();
    }

    throw new IllegalStateException(
        "Level " + log4jLevel + " could not be mapped to LogWriter level.");
  }
Logs a message at the {@code Level.FATAL} level including the stack trace of the
{@link Throwable} {@code t} passed as parameter.

@param message the message to log.
@param throwable the exception to log, including its stack
geode-dunit/src/main/java/org/apache/geode/test/dunit/log4j/LogWriterLogger.java