Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide external logger #19

Open
bijoor opened this issue Aug 2, 2016 · 0 comments
Open

Provide external logger #19

bijoor opened this issue Aug 2, 2016 · 0 comments

Comments

@bijoor
Copy link

bijoor commented Aug 2, 2016

Would like a way for roboto to use the logger provided by the contained application.

Possible approach (not tested):

  1. Add an option customLogger (or something like that)
  2. In constructor add this._log = this.option.customLogger || log;
  3. Replace all log.* with this._log.*
  4. Add a parameter to itemLogger constructor to accept external log object itemLogger(this._log)

Thanks for some awesome code BTW!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant