Add json logging.