mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-06 04:21:17 +01:00
updating winston timestamp
This commit is contained in:
5
app.js
5
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'
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user