SentryLoggerBackend
Provides a Logger backend for Sentry, to automatically submit Logger events above a configurable threshold to Sentry
Installation
- Add
sentry_logger_backendto your list of dependencies inmix.exs:
def deps do
[{:sentry_logger_backend, "~> 0.1.0"}]
end
- Add SentryLoggerBackend to the list of logger backends in your config, e.g.
config :logger, backends: [:console, SentryLoggerBackend]
- Set the level threshold (defaults to :error):
config :logger, SentryLoggerBackend, level: :error
License
This project is licensed under the MIT License.