trigger log events for all log levels

This commit is contained in:
Iuri Matias 2018-02-27 06:34:17 -05:00
parent 3cacb31c48
commit eed7631780
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ Logger.prototype.warn = function () {
if (!arguments.length || !(this.shouldLog('warn'))) {
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.writeToFile("[warning]: ", ...arguments);
};