You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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.
The text was updated successfully, but these errors were encountered: