output log in json format