mirror of https://github.com/embarklabs/embark.git
trigger log events for all log levels
This commit is contained in:
parent
ceb107f43b
commit
5de1c6e539
|
@ -40,7 +40,7 @@ Logger.prototype.warn = function () {
|
||||||
if (!arguments.length || !(this.shouldLog('warn'))) {
|
if (!arguments.length || !(this.shouldLog('warn'))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.events.emit("log", "warning", ...arguments);
|
this.events.emit("log", "warn", ...arguments);
|
||||||
this.logFunction(...Array.from(arguments).map(t => { return t ? t.yellow : t; }));
|
this.logFunction(...Array.from(arguments).map(t => { return t ? t.yellow : t; }));
|
||||||
this.writeToFile("[warning]: ", ...arguments);
|
this.writeToFile("[warning]: ", ...arguments);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue