use json format in statehistory logging - to support multiline output of checks