express-bunyan-logger icon indicating copy to clipboard operation
express-bunyan-logger copied to clipboard

bunyan logger middleware for express

Results 17 express-bunyan-logger issues
Sort by recently updated
recently updated
newest added

Describe the bug: We are getting vulnerability error in **express-bunyan-logger-1.3.3 version**. **Below is the dependency tree:** **express-bunyan-logger-1.3.3.tgz (Root Library) ❌ useragent-2.3.0.tgz (Vulnerable Library)** **Expected behavior:** The express-bunyan-logger-1.3.3 should not be...

This library will generate deprecation warnings with node v12. ``` (node:8) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated at ServerResponse.logging (/app/node_modules/express-bunyan-logger/index.js:130:36) at ServerResponse.emit (events.js:201:15) at ServerResponse.EventEmitter.emit (domain.js:471:20) ``` The fix is fairly...

https://nodejs.org/api/deprecations.html#deprecations_dep0066_outgoingmessage_prototype_headers_outgoingmessage_prototype_headernames

`express-bunyan-logger` incorrectly logs a 200 response code when connections are aborted. This happens when a connection is closed due to timeout ([`server.timeout`](https://nodejs.org/api/http.html#http_server_timeout) value is reached), for example. Other libraries correctly...

To fix https://github.com/villadora/express-bunyan-logger/issues/44

The `err` serializer was not defaulting to the standard Error serializer provided by bunyan when there was no error instance. In practice this means it won't be set for the...

This allows users of the middleware to define the name of the request ID in the logger. The label should be provided through the `reqId` setting in the options hash.

short-body can now be excluded

If you add an obfuscate option like `obfuscate: ['body.password']` and attempt to access `req.body.password` after the req has been logged (`immediate: true` for example), you'll receive `[HIDDEN]` as the value...