Skip to content

Commit

Permalink
fix error in example
Browse files Browse the repository at this point in the history
  • Loading branch information
danjenkins authored Jan 26, 2022
1 parent a59f8bc commit 59a3e09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ After the creation of the child logger, it is also accessible using the [`logger
```js
const logger = pino()
logger.debug('nope') // will not log, since default level is info
const child = logger.child({foo: 'bar'}, {level: 'debug')
const child = logger.child({foo: 'bar'}, {level: 'debug'})
child.debug('debug!') // will log as the `level` property set the level to debug
```
Expand Down

0 comments on commit 59a3e09

Please sign in to comment.