From 1573fb7c2cb8ffc4fbf507f50fe0761cfdae764e Mon Sep 17 00:00:00 2001 From: Stephen Hynes Date: Mon, 19 Dec 2016 10:41:29 +0000 Subject: [PATCH] Option to send raw log lines` --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 1853784..3010236 100755 --- a/index.js +++ b/index.js @@ -54,7 +54,11 @@ function start(opts) { if (token) { this.push(token); this.push(' '); - this.push(JSON.stringify(obj)); + if (opts.json){ + this.push(JSON.stringify(obj)); + } else { + this.push(obj.line) + } this.push('\n'); }