bithavoc / express-winston

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

allow adding "req._routeBlacklists.res" in custom routes #275

Open mhelal0 opened 2 years ago

mhelal0 commented 2 years ago

by using the below code you will not be able to exclude some responses body expressWinston.responseWhitelist.push('body');

we have to have the option to exclude the binary response because it will cause the error "STRING_TOO_LONG" and memory leak

so I just added the option to accept a black list of specific routes