Skip to content

Commit

Permalink
Add docs about child() method
Browse files Browse the repository at this point in the history
  • Loading branch information
nicokaiser committed Sep 17, 2020
1 parent 83865a2 commit 73e16ab
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 implement a `child()` method, which can be easily added to an `abstract-logging` instance in case it is needed:

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

## License

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

0 comments on commit 73e16ab

Please sign in to comment.