villadora / express-bunyan-logger

bunyan logger middleware for express
139 stars 74 forks source link

added an includesFn option #31

Closed ecoutu closed 9 years ago

ecoutu commented 9 years ago

includesFn option is called after the meta object passed to the bunyan log function is constructed (after excludes are applied). It is passed req and res and returns an object. The properties of the object returned are added to the meta object.

Note: if you decide to accept my other pull request (https://github.com/villadora/express-bunyan-logger/pull/30), I can rebase this branch onto the merged changes in master as there will be conflicts in test/bunyan.test.js