View Source CozyLogger.Integrations.Oban (cozy_logger v2.0.1)

CozyLogger integration for Oban.

Usage

You need to attach events handlers before starting the application:

defmodule Demo
  use Application

  def start(_type, _args) do
    :ok = CozyLogger.Integrations.Oban.install()

    children = [
      # ...
    ]

    Supervisor.start_link(children, strategy: :one_for_one, name: Demo.Supervisor)
  end
end

TODO

Currently, only the handler for [:oban, :job, :exception] is implemented.

If you need handlers for other events, feel free to contribute.

Summary

Functions