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

custom subscribers - bunyan integration #154

Closed
tcoopman opened this issue Aug 1, 2014 · 3 comments
Closed

custom subscribers - bunyan integration #154

tcoopman opened this issue Aug 1, 2014 · 3 comments

Comments

@tcoopman
Copy link

@tcoopman tcoopman commented Aug 1, 2014

I have a project where I'm already using bunyan for logging, but as good has some nice things for hapi, I was wondering if it was possible to combine bunyan and good.

I was thinking of a custom subscriber that just sends it output to a function, something like this:

myCustomLogFunction (log) {
  // do anything with the log
}

subscribers: {
  'myCustomLogFunction': ['ops', 'request']
}

Is something like this possible?

@geek

This comment has been minimized.

Copy link
Member

@geek geek commented Aug 1, 2014

Perfect timing, we are working on adding support for more pluggable subscribers/broadcasters (https://github.com/spumko/good/issues/152) /cc @lloydbenson

@chapel

This comment has been minimized.

Copy link

@chapel chapel commented Aug 1, 2014

👍

I would be interested in something like this as well. As long as it was the raw log objects.

@arb

This comment has been minimized.

Copy link
Contributor

@arb arb commented Oct 7, 2014

The ability to create custom reporters is included in this branch here and is described in detail here. This version is not yet released, but the features have been implemented.

@arb arb closed this Oct 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.