Skip to content

Commit

Permalink
Merge pull request #5 from nicokaiser/child-docs
Browse files Browse the repository at this point in the history
Add docs about `child()` method
  • Loading branch information
jsumners authored Oct 17, 2020
2 parents 83865a2 + 9c59509 commit 41fdcad
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ Available methods:

All methods are no operation functions.

Some loggers, like [Pino](https://getpino.io/), implement a `child()` method. This method can be easily added to an `abstract-logging` instance when stubbing out such loggers:

```js
const logger = require('abstract-logging')
logger.child = () => logger
```

## License

[MIT License](http://jsumners.mit-license.org/)

0 comments on commit 41fdcad

Please sign in to comment.