Current section

Files

Jump to
phoenix_live_dashboard lib phoenix live_dashboard application.ex
Raw

lib/phoenix/live_dashboard/application.ex

defmodule Phoenix.LiveDashboard.Application do
@moduledoc false
use Application
def start(_, _) do
Logger.add_backend(Phoenix.LiveDashboard.LoggerPubSubBackend)
children = [
{DynamicSupervisor, name: Phoenix.LiveDashboard.DynamicSupervisor, strategy: :one_for_one}
]
Supervisor.start_link(children, strategy: :one_for_one)
end
end