logback-android/src/main/java/ch/qos/logback/classic/Level.java
public static Level fromLocationAwareLoggerInteger(int levelInt) {
    Level level;
    switch (levelInt) {
      case LocationAwareLogger.TRACE_INT:
        level = TRACE;
        break;
      case LocationAwareLogger.DEBUG_INT:
        level = DEBUG;
        break;
      case LocationAwareLogger.INFO_INT:
        level = INFO;
        break;
      case LocationAwareLogger.WARN_INT:
        level = WARN;
        break;
      case LocationAwareLogger.ERROR_INT:
        level = ERROR;
        break;
      default:
        throw new IllegalArgumentException(levelInt + " not a valid level value");
    }
    return level;
  }
public static Level fromLocationAwareLoggerInteger(int levelInt) {
    Level level;
    switch (levelInt) {
      case LocationAwareLogger.TRACE_INT:
        level = TRACE;
        break;
      case LocationAwareLogger.DEBUG_INT:
        level = DEBUG;
        break;
      case LocationAwareLogger.INFO_INT:
        level = INFO;
        break;
      case LocationAwareLogger.WARN_INT:
        level = WARN;
        break;
      case LocationAwareLogger.ERROR_INT:
        level = ERROR;
        break;
      default:
        throw new IllegalArgumentException(levelInt + " not a valid level value");
    }
    return level;
  }
Convert one of the integer values defined in {@link LocationAwareLogger}
interface to an instance of this class, i.e. a Level.

@param levelInt An integer value representing a level as defined in LocationAwareLogger
@return an instance of this class, i.e. a Level.
@since 1.0.1