|
|
@ -11,7 +11,7 @@ var dirname = require('./cli/paths').baseDir;
|
|
|
|
function setupWinston() {
|
|
|
|
function setupWinston() {
|
|
|
|
winston.remove(winston.transports.Console);
|
|
|
|
winston.remove(winston.transports.Console);
|
|
|
|
winston.add(winston.transports.Console, {
|
|
|
|
winston.add(winston.transports.Console, {
|
|
|
|
colorize: true,
|
|
|
|
colorize: nconf.get('log-colorize') !== 'false',
|
|
|
|
timestamp: function () {
|
|
|
|
timestamp: function () {
|
|
|
|
var date = new Date();
|
|
|
|
var date = new Date();
|
|
|
|
return nconf.get('json-logging') ? date.toJSON() :
|
|
|
|
return nconf.get('json-logging') ? date.toJSON() :
|
|
|
|