sentry v6.0.0 Sentry.Logger
This is based on the Erlang error_logger.
To set this up, add :ok = :error_logger.add_report_handler(Sentry.Logger)
to your application’s start function. Example:
def start(_type, _opts) do
children = [
supervisor(Task.Supervisor, [[name: Sentry.TaskSupervisor]]),
:hackney_pool.child_spec(Sentry.Client.hackney_pool_name(), [timeout: Config.hackney_timeout(), max_connections: Config.max_hackney_connections()])
]
opts = [strategy: :one_for_one, name: Sentry.Supervisor]
:ok = :error_logger.add_report_handler(Sentry.Logger)
Supervisor.start_link(children, opts)
end
Link to this section Summary
Link to this section Functions
Link to this function
init(mod, list)