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

Add pino v7 transport #48

Open
vladshcherbin opened this issue Aug 5, 2021 · 3 comments
Open

Add pino v7 transport #48

vladshcherbin opened this issue Aug 5, 2021 · 3 comments
Labels
wontfix This will not be worked on

Comments

@vladshcherbin
Copy link

🚀 Feature Proposal

Pino v7 coming with new transports - https://getpino.io/#/docs/transports?id=v7-transports

Motivation

Would be awesome to have pino v7 transport out of the box.

Example

I've tried to connect pino-papertrail as shown in pino v7 docs example and it seems to be working:

transport

import papertrail from 'pino-papertrail'

export default function paperTrailTransport(options = {}) {
  return papertrail.createWriteStream({ ...options, appname: 'api-server' })
}

logger

import pino from 'pino'

const transport = pino.transport({
  target: './papertrail-transport.js',
  options: { host: 'xxx', port: 111 }
})

const logger = pino(transport)

export default logger

If I undestand correctly, a default export with such transport is everything what needs to be done.

p.s. I'm just trying papertrail and not sure everything's correctly set, but I can see correct logs in papertrail panel 😉

@stale
Copy link

stale bot commented Mar 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Mar 2, 2022
@vladshcherbin
Copy link
Author

🤖 🔫

@stale stale bot removed the wontfix This will not be worked on label Mar 2, 2022
@stale
Copy link

stale bot commented May 1, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label May 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant