【发布时间】:2015-11-26 08:41:56
【问题描述】:
我正在尝试将Logger.debug/1 用于我的网络项目。即使我确实对 /myApp/config 中存在的配置文件 (config.exs) 进行了添加,我也无法通过此错误消息。
** (CompileError) web/controllers/api/app_controller.ex:36: you must require Logger before invoking the macro Logger.debug/1
我在最后添加了这个特定的配置。
config :logger,
backends: [:console],
compile_time_purge_level: :info
我从 http://elixir-lang.org/docs/master/logger/Logger.html 那里得到了帮助
【问题讨论】:
标签: logging elixir phoenix-framework