private static String levelToStringSpecialCase(int levelWithFlags) {
    if ((levelWithFlags & SECURITY_LOGGING_FLAG) != 0) {
      // We know the flag is set so XOR will zero it out.
      int level = levelWithFlags ^ SECURITY_LOGGING_FLAG;
      return SecurityLogWriter.SECURITY_PREFIX + levelToString(level);
    } else {
      // Needed to prevent infinite recursion
      // This signifies an unknown log level was used
      return "level-" + levelWithFlags;
    }
  }
Handles the special cases for {@link #levelToString(int)} including such cases as the
SECURITY_LOGGING_PREFIX and an invalid log level.
geode-core/src/main/java/org/apache/geode/internal/logging/LogWriterImpl.java