mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-25 14:55:01 +00:00
Emit event only after loggers options are attached
This commit is contained in:
parent
2b5eb85688
commit
d25a1e94be
1 changed files with 2 additions and 1 deletions
|
@ -584,9 +584,10 @@
|
||||||
this._reset();
|
this._reset();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.loggers[name] = opt;
|
||||||
|
|
||||||
this.emit('newLogger', name, opt);
|
this.emit('newLogger', name, opt);
|
||||||
|
|
||||||
this.loggers[name] = opt;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//Keep the old console
|
//Keep the old console
|
||||||
|
|
Loading…
Add table
Reference in a new issue