logback-android/src/main/java/ch/qos/logback/classic/Level.java
public Integer toInteger() {
    switch (levelInt) {
      case ALL_INT:
        return ALL_INTEGER;
      case TRACE_INT:
        return TRACE_INTEGER;
      case DEBUG_INT:
        return DEBUG_INTEGER;
      case INFO_INT:
        return INFO_INTEGER;
      case WARN_INT:
        return WARN_INTEGER;
      case ERROR_INT:
        return ERROR_INTEGER;
      case OFF_INT:
        return OFF_INTEGER;
      default:
        throw new IllegalStateException("Level " + levelStr + ", " + levelInt
                + " is unknown.");
    }
  }
public Integer toInteger() {
    switch (levelInt) {
      case ALL_INT:
        return ALL_INTEGER;
      case TRACE_INT:
        return TRACE_INTEGER;
      case DEBUG_INT:
        return DEBUG_INTEGER;
      case INFO_INT:
        return INFO_INTEGER;
      case WARN_INT:
        return WARN_INTEGER;
      case ERROR_INT:
        return ERROR_INTEGER;
      case OFF_INT:
        return OFF_INTEGER;
      default:
        throw new IllegalStateException("Level " + levelStr + ", " + levelInt
                + " is unknown.");
    }
  }
public Integer toInteger ( ) { switch ( levelInt ) { case ALL_INT : return ALL_INTEGER ; case TRACE_INT : return TRACE_INTEGER ; case DEBUG_INT : return DEBUG_INTEGER ; case INFO_INT : return INFO_INTEGER ; case WARN_INT : return WARN_INTEGER ; case ERROR_INT : return ERROR_INTEGER ; case OFF_INT : return OFF_INTEGER ; default : throw new IllegalStateException ( "Level " + levelStr + ", " + levelInt + " is unknown." ) ; } }
Convert a Level to an Integer object.

@return This level's Integer mapping.
Convert a Level to an Integer object .