Code example for Properties

Methods: containsKey, getProperty, load

0
	 *         the {@link InputStream} 
	 * @throws IOException 
	 *             if the loading fails. 
	 */ 
	private Properties loadProperties(InputStream inputStream) throws IOException {
		Properties properties = new Properties();
		properties.load(inputStream);
		return properties;
	} 
 
	/** 
	 * Start the configuration 
	 *  
	 * @param properties 
	 */ 
	private void startConfiguration(Properties properties) {
 
		if (properties.containsKey(PropertyConfigurator.ROOT_LOGGER_KEY)) {
			Log.i(TAG, "Modern configuration not yet supported");
		} else { 
			Log.i(TAG, "Configure using the simple style (aka classic style)");
			configureSimpleStyle(properties);
		} 
	} 
 
	private void configureSimpleStyle(Properties properties) {
 
		setLevel(properties);
 
		String appenderString = properties.getProperty(PropertyConfigurator.APPENDER_PREFIX_KEY, "LogCatAppender");
		List<String> appenderList = parseAppenderString(appenderString);
		setAppenders(appenderList, properties);
 
		setFormatter(properties);
	}