This commit is contained in:
Mathew Kurian 2014-12-21 21:16:46 -06:00
parent 21e3342d01
commit 78be7ca828

View file

@ -401,6 +401,8 @@
}
});
raw += msg;
msg = getSpaces(offset) + msg;
if (multiLines) {
@ -578,7 +580,7 @@
var built = this.buildArgs(log, offset, log.contextString);
// newline enabled
log.argsString = built.msg;
log.argsString = built.raw;
// Finally, the message
log.message = log.contextString + log.argsString;
@ -601,7 +603,7 @@
// If the logger should print the message
// Print it
if (opt.logInConsole) {
global.console.log(applyColors(log.message, opt.colors));
global.console.log(applyColors(log.contextString + built.msg, opt.colors));
}
this._reset();