bithavoc / express-winston

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

Hide all body response on particular routes #177

Open olivierto opened 6 years ago

olivierto commented 6 years ago

Hello there, I didn't manage to find a way to hide all the body of a response for a particular route.

My problem is when express respond with a binary (eg a zip file), the console is flooded with binary data... I'd like to prevent this without loosing the access log. I tried to set req._routeBlacklists.body = ['*'] with no success...

Any idea on how to do?

Thanks

joeferraro commented 3 years ago

Hi is this possible?