Since I had a heck of a time finding out how to do something that ought to be really easy, I thought I'd post what I found. If you want Erlang to write errors to a file instead of stdout, add this to the command line:
-kernel error_logger '{file, "/tmp/erl.log"}'
Maybe there's a better solution, in which case feel free to correct me.