New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A way to ignore a specific endpoint #412
Comments
Have you considered using log filters? https://docs.python.org/3/library/logging.html#filter-objects ? |
No, I didn't, I will try this, thanks for helping. |
@jrobichaud, can u please give us an example how to use log filters to achieve that ? |
I do not have any example but I would google it. You might want to look into this too: |
maybe this could be an inspiration: #283 |
If you manage to do a clean solution, a recipe could be added to the How-tos of the documentation. |
Thanks for your contribution. https://django-structlog.readthedocs.io/en/latest/how_tos.html#filter-logs-from-being-recorded |
Sometimes, we have a noisy endpoint that we want just bypass from being logged by RequestMiddleware, is there a way to do that? I have an endpoint massively called by mobile app that polute my logs.
The text was updated successfully, but these errors were encountered: