Force log object id to be an integer