Turn Off Phoenix Access Logger


Here's how to turn off Elixir Phoenix's Logger.

The solution is simple. But it was surprisingly-difficult to find. Here's the Phoenix.Logger doc. But, only after the guy on the forum goes unanswered, and Hermano Valim suggests in this (old) GH issue to use log_level: :error.

But I don't want log_level: :error generally. I want log_level: :info. I want to see what I log. But I don't want to see what Phoenix logs by default.

So, open up config/config.exs and add:

config :phoenix, logger: false

That's it.