phoenixframework / phoenix_live_dashboard

Realtime dashboard with metrics, request logging, plus storage, OS and VM insights
MIT License
2.02k stars 184 forks source link

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

Closed josevalim closed 1 year ago

josevalim commented 1 year ago

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.