logback-android/src/main/java/ch/qos/logback/core/android/SystemPropertiesProxy.java
public Boolean getBoolean(String key, boolean def)
      throws IllegalArgumentException {

    if (SystemProperties == null || getBoolean == null) return def;

    Boolean ret = def;
    try {
      ret = (Boolean) getBoolean.invoke(SystemProperties, new Object[]{ key, def });
    } catch (IllegalArgumentException e) {
      throw e;
    } catch (Exception e) {
    }
    return ret;
  }
public Boolean getBoolean(String key, boolean def)
      throws IllegalArgumentException {

    if (SystemProperties == null || getBoolean == null) return def;

    Boolean ret = def;
    try {
      ret = (Boolean) getBoolean.invoke(SystemProperties, new Object[]{ key, def });
    } catch (IllegalArgumentException e) {
      throw e;
    } catch (Exception e) {
    }
    return ret;
  }
public Boolean getBoolean ( String key , boolean def ) throws IllegalArgumentException { if ( SystemProperties == null || getBoolean == null ) return def ; Boolean ret = def ; try { ret = ( Boolean ) getBoolean . invoke ( SystemProperties , new Object [ ] { key , def } ) ; } catch ( IllegalArgumentException e ) { throw e ; } catch ( Exception e ) { } return ret ; }
Get the value for the given key in the Android system properties, returned
as a boolean.

Values 'n', 'no', '0', 'false' or 'off' are considered false. Values 'y',
'yes', '1', 'true' or 'on' are considered true. (case insensitive). If the
key does not exist, or has any other value, then the default result is
returned.

@param key
the key to lookup
@param def
a default value to return
@return the key parsed as a boolean, or def if the key isn't found or is
not able to be parsed as a boolean.
@throws IllegalArgumentException
if the key exceeds 32 characters
Get the value for the given key in the Android system properties returned as a boolean .