logback-android/src/main/java/ch/qos/logback/core/android/AndroidContextUtil.java
public void setupProperties(LoggerContext context) {
    // legacy properties
    Properties props = new Properties();
    props.setProperty(CoreConstants.DATA_DIR_KEY, getFilesDirectoryPath());
    final String extDir = getMountedExternalStorageDirectoryPath();
    if (extDir != null) {
      props.setProperty(CoreConstants.EXT_DIR_KEY, extDir);
    }
    props.setProperty(CoreConstants.PACKAGE_NAME_KEY, getPackageName());
    props.setProperty(CoreConstants.VERSION_CODE_KEY, getVersionCode());
    props.setProperty(CoreConstants.VERSION_NAME_KEY, getVersionName());

    context.putProperties(props);
  }
public void setupProperties(LoggerContext context) {
    // legacy properties
    Properties props = new Properties();
    props.setProperty(CoreConstants.DATA_DIR_KEY, getFilesDirectoryPath());
    final String extDir = getMountedExternalStorageDirectoryPath();
    if (extDir != null) {
      props.setProperty(CoreConstants.EXT_DIR_KEY, extDir);
    }
    props.setProperty(CoreConstants.PACKAGE_NAME_KEY, getPackageName());
    props.setProperty(CoreConstants.VERSION_CODE_KEY, getVersionCode());
    props.setProperty(CoreConstants.VERSION_NAME_KEY, getVersionName());

    context.putProperties(props);
  }
public void setupProperties ( LoggerContext context ) { // legacy properties Properties props = new Properties ( ) ; props . setProperty ( CoreConstants . DATA_DIR_KEY , getFilesDirectoryPath ( ) ) ; final String extDir = getMountedExternalStorageDirectoryPath ( ) ; if ( extDir != null ) { props . setProperty ( CoreConstants . EXT_DIR_KEY , extDir ) ; } props . setProperty ( CoreConstants . PACKAGE_NAME_KEY , getPackageName ( ) ) ; props . setProperty ( CoreConstants . VERSION_CODE_KEY , getVersionCode ( ) ) ; props . setProperty ( CoreConstants . VERSION_NAME_KEY , getVersionName ( ) ) ; context . putProperties ( props ) ; }
Sets properties for use in configs
@param context logger context whose property map is updated
Sets properties for use in configs