sentry_logger_backend v0.1.6 SentryLoggerBackend
Provides a Logger
backend for Sentry. This will automatically
submit Error level Logger events to Sentry.
### Configuration Simply add the following to your config:
config :logger, backends: [:console, SentryLoggerBackend]
To set the level threshold:
config :logger, SentryLoggerBackend, level: :error
To set a fingerprint callback function:
# The `process` function here takes 2 arguments:
# 1. any metadata received from logger for `fingerprint`
# 2. the message string from the logger
# It should return a list of elements that work with `to_string`
config :logger, SentryLoggerBackend, fingerprint_callback: &MyApp.Fingerprinting.process/2