Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Exclude specific URLs from pino logs #52

Closed
cseas opened this issue Jul 28, 2020 · 2 comments
Closed

Exclude specific URLs from pino logs #52

cseas opened this issue Jul 28, 2020 · 2 comments

Comments

@cseas
Copy link

cseas commented Jul 28, 2020

My server uses /healthz endpoints which I need to tell pino to ignore, not sure how.

This feature has already been requested in hapijs/hapi-pino#26 and pinojs/koa-pino-logger#23

Perhaps something like ignorePaths should just be added to the main pino package since this is a general issue and not specific to a particular server library.

@cseas
Copy link
Author

cseas commented Jul 28, 2020

Nevermind, just found an answer here:
#43

Would it be possible to mention the solution somewhere in the pino docs?
Searching for "ignore" there didn't give any useful results so I ended up on Google and then here.

This is just feedback. I found the solution so the maintainers can close this issue once they see it.

@mcollina
Copy link
Member

Would you like to send a PR?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants