Log errors in file

How do I log all process failures in a file instead of tty? I read in the documentation that there are some standard Erlang modules that can do this (SASL, error_logger), but, unfortunately, I did not find any clean examples.

+7
erlang
source share
1 answer

Start your erl node with

erl -boot start_sasl -sasl sasl_error_logger \{file,\"path/to/logfile.log\"\} 
+6
source share

All Articles