开发者

Log errors in a file

开发者 https://www.devze.com 2022-12-24 14:30 出处:网络
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 unfo

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

精彩评论

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