logback-android/src/main/java/ch/qos/logback/classic/Level.java
public static int toLocationAwareLoggerInteger(Level level) {
    if (level == null)
      throw new IllegalArgumentException("null level parameter is not admitted");
    switch (level.toInt()) {
      case Level.TRACE_INT:
        return LocationAwareLogger.TRACE_INT;
      case Level.DEBUG_INT:
        return LocationAwareLogger.DEBUG_INT;
      case Level.INFO_INT:
        return LocationAwareLogger.INFO_INT;
      case Level.WARN_INT:
        return LocationAwareLogger.WARN_INT;
      case Level.ERROR_INT:
        return LocationAwareLogger.ERROR_INT;
      default:
        throw new IllegalArgumentException(level + " not a valid level value");
    }
  }
public static int toLocationAwareLoggerInteger(Level level) {
    if (level == null)
      throw new IllegalArgumentException("null level parameter is not admitted");
    switch (level.toInt()) {
      case Level.TRACE_INT:
        return LocationAwareLogger.TRACE_INT;
      case Level.DEBUG_INT:
        return LocationAwareLogger.DEBUG_INT;
      case Level.INFO_INT:
        return LocationAwareLogger.INFO_INT;
      case Level.WARN_INT:
        return LocationAwareLogger.WARN_INT;
      case Level.ERROR_INT:
        return LocationAwareLogger.ERROR_INT;
      default:
        throw new IllegalArgumentException(level + " not a valid level value");
    }
  }
public static int toLocationAwareLoggerInteger ( Level level ) { if ( level == null ) throw new IllegalArgumentException ( "null level parameter is not admitted" ) ; switch ( level . toInt ( ) ) { case Level . TRACE_INT : return LocationAwareLogger . TRACE_INT ; case Level . DEBUG_INT : return LocationAwareLogger . DEBUG_INT ; case Level . INFO_INT : return LocationAwareLogger . INFO_INT ; case Level . WARN_INT : return LocationAwareLogger . WARN_INT ; case Level . ERROR_INT : return LocationAwareLogger . ERROR_INT ; default : throw new IllegalArgumentException ( level + " not a valid level value" ) ; } }
Convert this level instance to an integer  value defined in the
{@link LocationAwareLogger} interface.

@param level The level to convert to LocationAwareLogger integer
@return int An integer corresponding to this level as defined in LocationAwareLogger
@since 1.0.1
Convert this level instance to an integer value defined in the { @link LocationAwareLogger } interface .