public static long getLong(Properties config, String key, long defaultValue, Logger logger) {
		try {
			return getLong(config, key, defaultValue);
		} catch (IllegalArgumentException iae) {
			logger.warn(iae.getMessage());
			return defaultValue;
		}
	}
public static long getLong ( Properties config , String key , long defaultValue , Logger logger ) { try { return getLong ( config , key , defaultValue ) ; } catch ( IllegalArgumentException iae ) { logger . warn ( iae . getMessage ( ) ) ; return defaultValue ; } }
Get long from properties.
This method only logs if the long is not valid.

@param config Properties
@param key key in Properties
@param defaultValue default value if value is not set
@return default or value of key