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

instance.child() should set the level property in pino #57

Merged
merged 3 commits into from
Jun 15, 2016

Conversation

mcollina
Copy link
Member

Fixes #55.

@davidmarkclements please review.

Benchmarks stays the same.

@coveralls
Copy link

coveralls commented Jun 14, 2016

Coverage Status

Coverage remained the same at 89.243% when pulling 49763a8 on child-level-constructor into e7d91d4 on master.

@coveralls
Copy link

coveralls commented Jun 15, 2016

Coverage Status

Coverage increased (+2.8%) to 92.032% when pulling edbd433 on child-level-constructor into e7d91d4 on master.

@@ -230,6 +230,8 @@ the current log level of the parent at the time they are spawned.

From v2.x.x the log level of a child is mutable (whereas in
v1.x.x it was immutable), and can be set independently of the parent.
You can pass `level` as a property inside the `bindings`, and that will
Copy link
Member

Choose a reason for hiding this comment

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

If a level property is present in the object passed to child it will override the child logger level.

@davidmarkclements
Copy link
Member

good to go man

@mcollina mcollina merged commit 1e78d2d into master Jun 15, 2016
@mcollina mcollina deleted the child-level-constructor branch June 15, 2016 09:22
@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 Feb 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pino.child() should understand the 'level' property as a the level
3 participants