Compile time purge level
Elixir can conditionally remove log statements of the form Logger.debug/2
to
Logger.error/2
at compile time.
config :logger, compile_time_purge_level: :info
In this configuration, logger statements like Logger.debug("something inconsequential happened")
will be compiled out altogether.