mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-25 06:45:10 +00:00
Fix
This commit is contained in:
parent
21e3342d01
commit
78be7ca828
1 changed files with 4 additions and 2 deletions
|
@ -401,6 +401,8 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
raw += msg;
|
||||||
|
|
||||||
msg = getSpaces(offset) + msg;
|
msg = getSpaces(offset) + msg;
|
||||||
|
|
||||||
if (multiLines) {
|
if (multiLines) {
|
||||||
|
@ -578,7 +580,7 @@
|
||||||
var built = this.buildArgs(log, offset, log.contextString);
|
var built = this.buildArgs(log, offset, log.contextString);
|
||||||
|
|
||||||
// newline enabled
|
// newline enabled
|
||||||
log.argsString = built.msg;
|
log.argsString = built.raw;
|
||||||
|
|
||||||
// Finally, the message
|
// Finally, the message
|
||||||
log.message = log.contextString + log.argsString;
|
log.message = log.contextString + log.argsString;
|
||||||
|
@ -601,7 +603,7 @@
|
||||||
// If the logger should print the message
|
// If the logger should print the message
|
||||||
// Print it
|
// Print it
|
||||||
if (opt.logInConsole) {
|
if (opt.logInConsole) {
|
||||||
global.console.log(applyColors(log.message, opt.colors));
|
global.console.log(applyColors(log.contextString + built.msg, opt.colors));
|
||||||
}
|
}
|
||||||
|
|
||||||
this._reset();
|
this._reset();
|
||||||
|
|
Loading…
Add table
Reference in a new issue