phoenixframework / phoenix_live_dashboard

Realtime dashboard with metrics, request logging, plus storage, OS and VM insights

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do not use Logger.add_backend/2 from Elixir v1.15+ onwards

josevalim opened this issue · comments

Elixir v1.15 adds a Logger.default_formatter, which means we no longer need to use Logger backends but we can use Erlang handlers. We should detect if we are on Elixir v1.15 and use the handler accordingly.