-
Notifications
You must be signed in to change notification settings - Fork 13
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
Added the ability to build a transport using a transform #25
Conversation
Pull Request Test Coverage Report for Build 1290626233Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
README.md
Outdated
@@ -97,6 +101,40 @@ module.exports = function (opts) { | |||
} | |||
``` | |||
|
|||
### Stream concatenation / pipeline | |||
|
|||
You can pipeline multiple transport as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can pipeline multiple transport as well. | |
You can pipeline multiple transports: |
It would be good to link to a concrete (real world) example in the pino-syslog
docs when it is implemented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I Agree. I'll update the doc once this is implemented fully.
Co-authored-by: James Sumners <[email protected]>
Co-authored-by: James Sumners <[email protected]>
Co-authored-by: Manuel Spigolon <[email protected]>
@@ -51,8 +51,8 @@ Create a [`split2`](http://npm.im/split2) instance and returns it. | |||
This same instance is also passed to the given function, which is called | |||
synchronously. | |||
|
|||
If `fn` returns a [`Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable), we will | |||
wrap that readable and the split2 instance using [`duplexify`](https://www.npmjs.com/package/duplexify), | |||
If `opts.transform` is `true`, `pino-abstract-transform` will |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opts.enablePipelining
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If `opts.transform` is `true`, `pino-abstract-transform` will | |
If `opts.enablePipelining` is `true`, `pino-abstract-transform` will |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If `opts.transform` is `true`, `pino-abstract-transform` will | |
If `opts.enablePipelining` is `true`, `pino-abstract-transform` will |
@@ -51,8 +51,8 @@ Create a [`split2`](http://npm.im/split2) instance and returns it. | |||
This same instance is also passed to the given function, which is called | |||
synchronously. | |||
|
|||
If `fn` returns a [`Readable`](https://nodejs.org/api/stream.html#stream_class_stream_readable), we will | |||
wrap that readable and the split2 instance using [`duplexify`](https://www.npmjs.com/package/duplexify), | |||
If `opts.transform` is `true`, `pino-abstract-transform` will |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If `opts.transform` is `true`, `pino-abstract-transform` will | |
If `opts.enablePipelining` is `true`, `pino-abstract-transform` will |
Co-authored-by: Manuel Spigolon <[email protected]>
No description provided.