From 0a7af4fb2ef24419e3d3b795771cb44e608f9609 Mon Sep 17 00:00:00 2001 From: Shwetajain148 Date: Tue, 28 Mar 2017 10:59:02 +0530 Subject: [PATCH 1/2] incude timestamp in nodejs events --- lib/winston-loggly.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/winston-loggly.js b/lib/winston-loggly.js index df0911e..496f234 100644 --- a/lib/winston-loggly.js +++ b/lib/winston-loggly.js @@ -58,7 +58,7 @@ var Loggly = exports.Loggly = function (options) { bufferOptions: options.bufferOptions || {size: 500, retriesInMilliSeconds: 30 * 1000} }); - this.timestamp = options.timestamp || false; + this.timestamp = true; this.stripColors = options.stripColors || false; }; From e8f39b8c66c98fbea2ee299b78838dcb427db85b Mon Sep 17 00:00:00 2001 From: Shwetajain148 Date: Wed, 29 Mar 2017 15:36:37 +0530 Subject: [PATCH 2/2] set timestamp field true by default and also make it configurable --- lib/winston-loggly.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/winston-loggly.js b/lib/winston-loggly.js index 496f234..bf8ec81 100644 --- a/lib/winston-loggly.js +++ b/lib/winston-loggly.js @@ -58,7 +58,7 @@ var Loggly = exports.Loggly = function (options) { bufferOptions: options.bufferOptions || {size: 500, retriesInMilliSeconds: 30 * 1000} }); - this.timestamp = true; + this.timestamp = options.timestamp === false ? false : true; this.stripColors = options.stripColors || false; };