villadora / express-bunyan-logger

bunyan logger middleware for express
139 stars 74 forks source link

exclude by route #36

Open japel opened 8 years ago

japel commented 8 years ago

Is it possible to exclude some routes from being logged? If so, how can this be done?

marcbachmann commented 8 years ago

Only mount the middleware on the routes where you need it. We shouldn't do this in that library.

advance512 commented 7 years ago

I disagree. Generally I want every route to be logged, by default. I don't want to "opt in", I want to "opt out". e.g. /ping from ELB.

Any way to do this, currently?