bithavoc / express-winston

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

Allow filtering of the response body #84

Closed tsheaff closed 9 years ago

tsheaff commented 9 years ago

By simply moving the filtering of meta.res after the meta.res.body is set, we allow for custom filtering of the response body. This is important for certain applications (e.g. we wish to truncate certain params from the response body in a custom manner)

floatingLomas commented 9 years ago

Will try to look at this in the next couple of days. Thanks!

floatingLomas commented 9 years ago

Yup, cool. Sorry this took so long. I'll put in both the 0.x and 1.x branches and bump minor on both.