Closed ecoutu closed 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.
includesFn
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
test/bunyan.test.js
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