|
|
@ -41,7 +41,7 @@ winston.add(winston.transports.Console, {
|
|
|
|
colorize: true,
|
|
|
|
colorize: true,
|
|
|
|
timestamp: function() {
|
|
|
|
timestamp: function() {
|
|
|
|
var date = new Date();
|
|
|
|
var date = new Date();
|
|
|
|
return date.getDate() + '/' + (date.getMonth() + 1) + ' ' + date.getHours() + ':' + date.getMinutes() + ' [' + global.process.pid + ']';
|
|
|
|
return date.getDate() + '/' + (date.getMonth() + 1) + ' ' + date.toTimeString().substr(0,5) + ' [' + global.process.pid + ']';
|
|
|
|
},
|
|
|
|
},
|
|
|
|
level: global.env === 'production' ? 'info' : 'verbose'
|
|
|
|
level: global.env === 'production' ? 'info' : 'verbose'
|
|
|
|
});
|
|
|
|
});
|
|
|
|