express-bunyan-logger
express-bunyan-logger copied to clipboard
bunyan logger middleware for express
Is it possible to exclude some routes from being logged? If so, how can this be done?
I was incorrectly doing ```javascript var bunyanLogger = require("express-bunyan-logger"); var express = require("express"); var app = express(); app.use(bunyanLogger); ``` when I really wanted: ``` app.use(bunyanLogger()); ``` It's hard to tell...
req-headers is always "[CIRCULAR]" due to Bunyan's safeCycle() during JSON.stringify. Deep clone req.headers to req-header to overcome the same object check in safeCycle()
Hello, I use `express-bunyan-logger` as child logger of bunyan. My config is: ``` var logExpressConfig = { type: 'app-express' }; var logExpressExcludes = [ 'user-agent', 'body', 'short-body', 'req-headers', 'res-headers', 'req',...
- `node-uuid 1.4.7` => `uuid 3.0.0` - License requires SPDX string now.
hi there, your lib makes it possible to pass in a pre-existing bunyan instance (which will be used in preference of creating a new bunyan instance if given), see here:...
The passed in options are mutated by `express-bunyan-logger`. That doesn't work well when you want to share config settings between the standard and error logger. https://github.com/villadora/express-bunyan-logger/blob/master/index.js#L30 Mutation breaks the following...