mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-25 06:45:10 +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.loggers[name] = opt;
|
||||
|
||||
this.emit('newLogger', name, opt);
|
||||
|
||||
this.loggers[name] = opt;
|
||||
};
|
||||
|
||||
//Keep the old console
|
||||
|
|
Loading…
Add table
Reference in a new issue