Skip to content

Commit

Permalink
Describe options.logger
Browse files Browse the repository at this point in the history
Fixes #40.
  • Loading branch information
BendingBender committed Jan 20, 2021
1 parent 717e2d8 commit 213db93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ app.use(function(req, res, next) {
## Configuration
### options.logger
A custom instance of `bunyan` logger to use in the middware. Useful if you already do all of the logging with `bunyan` and don't want this middleware to create a new unconfigured instance. Also useful if you want to pass a child logger into this middleware.
### options.format
Format string, please go the source code to the metadata. ":name" will print out meta.name; ":name[key]" will print out the property 'key' of meta.name.
Expand Down

0 comments on commit 213db93

Please sign in to comment.