-
Notifications
You must be signed in to change notification settings - Fork 888
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 documentation for MultiStreamRes, StreamEntry, DestinationStream and Level #1342
Conversation
|
lib/multistream.js
Outdated
: typeof dest.level === 'number' | ||
? dest.level | ||
// Default fallback level | ||
: DEFAULT_INFO_LEVEL |
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.
Would you mind to restore the previous if/else block?
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.
of course, I restored the if/else block instead of the conditional operator - unless you meant reverting the whole change?
@jsumners your action did not work :( |
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.
lgtm
I see 😭 |
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. |
Should solve #1327
This PR introduces 2 top-level sections in the documentation:
Interfaces
andTypes
Each describes respectively the interfaces and types involved in the object returned by
pino.multistream()
which is otherwise undocumented.Also:
pino.multistream().add
intest/multistream.test.js
pino.multistream().add
intest/multistream.test.js
pino.multistream
andpino.multistream.add
now throw Error if provided with an invalid stream object