I am trying to use the Logger.debug/1 for my web-project. I am unable to get past this error message even though I did make additions to the configuration file (config.exs) present in /myApp/config.
** (CompileError) web/controllers/api/app_controller.ex:36: you must require Logger before invoking the macro Logger.debug/1
I added this particular configuration at the end.
config :logger,
backends: [:console],
compile_time_purge_level: :info
I took help to make this addition from http://elixir-lang.org/docs/master/logger/Logger.html