mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
closes #6155
This commit is contained in:
@@ -11,7 +11,7 @@ var dirname = require('./cli/paths').baseDir;
|
||||
function setupWinston() {
|
||||
winston.remove(winston.transports.Console);
|
||||
winston.add(winston.transports.Console, {
|
||||
colorize: true,
|
||||
colorize: nconf.get('log-colorize') !== 'false',
|
||||
timestamp: function () {
|
||||
var date = new Date();
|
||||
return nconf.get('json-logging') ? date.toJSON() :
|
||||
|
||||
Reference in New Issue
Block a user