We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a31118e commit d922c35Copy full SHA for d922c35
lib/sentry/logger_backend.ex
@@ -1,10 +1,11 @@
1
defmodule Sentry.LoggerBackend do
2
@moduledoc """
3
Report Logger events like crashed processes to Sentry. To include in your
4
- application, add this module to your Logger backends:
+ application, start this backend in your application `start/2` callback:
5
6
- config :logger,
7
- backends: [:console, Sentry.LoggerBackend]
+ # lib/my_app/application.ex
+ def start(_type, _args) do
8
+ Logger.add_backend(Sentry.LoggerBackend)
9
10
Sentry context will be included in metadata in reported events. Example:
11
0 commit comments