bithavoc / express-winston

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

allow to ignore routes based on req and res #64

Closed saadtazi closed 9 years ago

saadtazi commented 9 years ago

Added an optional ignoreRoute option that expects a function that receives req and res as params and should return true when the request should be ignored (= not logged), false otherwise. IgnoredRoutes now also uses req.originalUrl or url instead of req.path, which should fix #63

robbiet480 commented 9 years ago

:+1: for this