support string formats in api.json; add logging to scala client