express-bunyan-logger icon indicating copy to clipboard operation
express-bunyan-logger copied to clipboard

exclude by route

Open japel opened this issue 8 years ago • 2 comments

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

japel avatar Jun 22 '16 15:06 japel

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

marcbachmann avatar Aug 04 '16 18:08 marcbachmann

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?

advance512 avatar Aug 03 '17 18:08 advance512