开发者

Log errors in a file

How do I log all process crashes into a file instead of a tty ? I've read in the documentation that there are some s开发者_开发技巧tandard Erlang modules that can do it (SASL, error_logger), but unfortunately haven't found any clean examples.


Start your erl node with

erl -boot start_sasl -sasl sasl_error_logger \{file,\"path/to/logfile.log\"\}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜