Would like a way for roboto to use the logger provided by the contained application.
Possible approach (not tested):
- Add an option
customLogger (or something like that)
- In constructor add
this._log = this.option.customLogger || log;
- Replace all
log.* with this._log.*
- Add a parameter to itemLogger constructor to accept external log object
itemLogger(this._log)
Thanks for some awesome code BTW!
Would like a way for roboto to use the logger provided by the contained application.
Possible approach (not tested):
customLogger(or something like that)this._log = this.option.customLogger || log;log.*withthis._log.*itemLogger(this._log)Thanks for some awesome code BTW!