protected static int getRealLogLevel(int levelWithFlags) {
    if (levelWithFlags == NONE_LEVEL) {
      return levelWithFlags;
    }
    return levelWithFlags & LOGGING_FLAGS_MASK;
  }
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