From a8402b228cc371f4624577da541f12e28e2ae6c2 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 13 Nov 2014 13:52:46 -0500 Subject: [PATCH] updating winston timestamp --- app.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app.js b/app.js index e90539c95a..88ba08c354 100644 --- a/app.js +++ b/app.js @@ -38,7 +38,10 @@ global.env = process.env.NODE_ENV || 'production'; winston.remove(winston.transports.Console); winston.add(winston.transports.Console, { colorize: true, - timestamp: true, + timestamp: function() { + var date = new Date; + return date.getDate() + '/' + (date.getMonth() + 1) + ' ' + date.getHours() + ':' + date.getMinutes() + ' [' + global.process.pid + ']'; + }, level: global.env === 'production' ? 'info' : 'verbose' });