log messages in json to stdout (console) like we do in the ui