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 .