Represent logs as JSON or plain text