mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-24 22:34:58 +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;
|
||||
|
||||
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();
|
||||
|
|
Loading…
Add table
Reference in a new issue