public static Long getLong(Config config, String path) {
        try {
            Object obj = config.getAnyRef(path);
            return obj instanceof Number ? ((Number) obj).longValue() : null;
        } catch (ConfigException.Missing | ConfigException.WrongType e) {
            if (e instanceof ConfigException.WrongType) {
                LOGGER.warn(e.getMessage(), e);
            }
            return null;
        }
    }
public static Long getLong ( Config config , String path ) { try { Object obj = config . getAnyRef ( path ) ; return obj instanceof Number ? ( ( Number ) obj ) . longValue ( ) : null ; } catch ( ConfigException . Missing | ConfigException . WrongType e ) { if ( e instanceof ConfigException . WrongType ) { LOGGER . warn ( e . getMessage ( ) , e ) ; } return null ; } }
Get a configuration as Long. Return {@code null} if missing or wrong type.

@param config
@param path
@return