Emit event only after loggers options are attached

This commit is contained in:
Guillaume Wuip 2014-12-15 12:42:49 +01:00
parent 2b5eb85688
commit d25a1e94be

View file

@ -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