log api call with client ip