From 213db93b8d684ca9e7ce47f393f98e970d803e25 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Sat, 16 Sep 2017 00:19:46 +0200 Subject: [PATCH] Describe options.logger Fixes #40. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index e2e6b2c..b45c2d3 100644 --- a/README.md +++ b/README.md @@ -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.