Skip to content
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

Allow LoggerBackend to take a function to determine whether or not forward a message to Sentry #536

Closed
aselder opened this issue Feb 21, 2023 · 0 comments · Fixed by #608

Comments

@aselder
Copy link
Contributor

aselder commented Feb 21, 2023

We use Sentry extensively and the LoggerBackend to send message to Sentry. Often, there are 3rd party libraries that logging things with Logger.error that we don't care about.

I'd love to be able to pass a function to the LoggerBackend config which would take the log message and return true or false on whether to forward that message to Sentry, very similar the the filter option available to the top level sentry config.

I could throw together a PR if people think this would be useful and valuable.

@whatyouhide whatyouhide changed the title Allow LoggerBackend to take a function to determine whether or not forward a message to Sentry. Allow LoggerBackend to take a function to determine whether or not forward a message to Sentry Sep 11, 2023
@whatyouhide whatyouhide self-assigned this Sep 11, 2023
@whatyouhide whatyouhide removed their assignment Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants