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.multistream #1004

Merged
merged 6 commits into from
Apr 10, 2021
Merged

Add pino.multistream #1004

merged 6 commits into from
Apr 10, 2021

Conversation

mcollina
Copy link
Member

@mcollina mcollina commented Apr 7, 2021

Source code imported from https://github.com/pinojs/pino-multi-stream.

Following up from the introduction of #1003 and #937, I think we can include this in pino as well.

A user might like to send the data to a remote transport and also write the logs to disk.

I plan to make pino.multistream() to be usable within a custom transport, so that we do not spawn up more than one thread.

Copy link
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm okay with this if you are. I rather liked it being a separate module because we cold say "it exists, but we do not recommend it" and get out of undesirable issues. But I can see that we are not going to be able to get rid of this feature, so bringing into core probably makes sense.

docs/api.md Outdated Show resolved Hide resolved
docs/api.md Outdated Show resolved Hide resolved
docs/help.md Outdated Show resolved Hide resolved
lib/multistream.js Outdated Show resolved Hide resolved
multistream.js Outdated Show resolved Hide resolved
@mcollina
Copy link
Member Author

mcollina commented Apr 8, 2021

@jsumners @davidmarkclements could you take a final look?

Copy link
Member

@jsumners jsumners left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jsumners jsumners mentioned this pull request Apr 8, 2021
6 tasks
@mcollina mcollina merged commit 86744fa into next Apr 10, 2021
@mcollina mcollina deleted the multistream branch April 10, 2021 21:09
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants