Not possible to lower Phoenix.Logger :log level for entire endpoint?

I want to lower the log level to :debug for all those GET /path and Sent 200 in 1µs to see them in dev but get rid of them in prod.

Telemetry and Phoenix.Logger replaced Plug.Logger in #3426

Before this commit, you could lower the log level in Plug.Logger by changing it to
plug Plug.Logger, log: :debug in your endpoint.

Now it only seems possible to change per route scope?

2 Likes