bithavoc / express-winston

express.js middleware for winstonjs
https://www.npmjs.com/package/express-winston
MIT License
797 stars 187 forks source link

call `ignoreRoute` with settled response object and finer grain filtering #87

Closed hharnisc closed 9 years ago

hharnisc commented 9 years ago

Building ignoreRoute rules around the res.statusCode we're not previously possible.

hharnisc commented 9 years ago

I've also pushed a change here to specify sub-keys in req/res objects.

I wanted to include the remoteAddress from the response object, but req.connection is HUGE.

Now you can whitelist it like this

expressWinston.requestWhitelist.push("connection.remoteAddress");