【发布时间】:2012-02-25 03:12:25
【问题描述】:
我目前正尝试按照文档建议在我的应用中设置 otp 日志记录。
我有以下启动行:
erl -pa ebin edit deps/*/ebin -boot start_sasl \
-detached \
-sasl sasl_error_logger "{file, \"priv/log/app.log\"}" \
-sasl errlog_type all \
-sname $APP_NAME \
-s $APP_NAME
但是当我在我的应用程序中说error_logger:error_report("!!!!") 或error_logger:error_msg("!!!!") 之类的内容时,日志文件中没有打印任何内容,我做错了什么?
【问题讨论】:
标签: erlang erlang-otp