newrelic / newrelic-winston-logenricher-node

This is no longer maintained. The work has been moved to https://github.com/newrelic/newrelic-node-log-extensions/tree/main/packages/winston-log-enricher
Apache License 2.0
6 stars 8 forks source link

Support for pinojs? #47

Closed JaneJeon closed 2 years ago

JaneJeon commented 3 years ago

Hi, I know that this isn’t exactly a feature request for this specific library, but I’ve been reading through the source code, and it seems like bulk of the logic is just this: https://github.com/newrelic/newrelic-winston-logenricher-node/blob/main/lib/createFormatter.js#L42

Therefore, would it not be possible to port over this logic to pinojs as well? Pino has gotten to the point where the library provides multiple hooks and transformers without the need for an external transport (i.e. no piping), and it’s the other major logging library most people use in production, not to mention Elastic has already added support for pino themselves.

Thanks!

carlo-808 commented 3 years ago

Thank you for the feature request @JaneJeon and for the feedback into how much work would be involved to add pinojs logging! I will add this as a feature request for prioritization with our product manager.

alkiskal commented 3 years ago

I'm also interested in this. Basically anyone that is using fastify and doesn't want to change the default logger (pino) and wants to use newrelic has the same roadblock. (since fastify is on the rise, I guess this could prove beneficial to a lot of people)

bizob2828 commented 2 years ago

We released a beta version of this log enricher: @newrelic/pino-enricher

Please try it out and give us feedback. Also, PRs are welcome