log to /var/log/cmdlog.log in json format