0

I like Emacs and Erlang too; I have set-up the erlang-mode and distel properly.

In my project,when dealing with the log,it doesn't show the

=ERROR REPORT==== 15-Sep-2012::14:09:30 ===

in the erlang-shell.

However in Windows it works. but, I like to develop on Ubuntu. Could anyone give me some advice on how to get it to work?

algking
  • 101

1 Answers1

0

{sasl_error_logger, false} is your problem. That tells your Erlang node to turn off logging to the terminal and to plain text files. According to the manual, you can set it to either tty or {file, "mylog.txt"} to get log output.

You also have this in your config, though:

{error_logger_mf_dir, "./logs"}, %% dirs
{error_logger_mf_maxbytes, 1048760}, %% 10M per log file.
{error_logger_mf_maxfiles, 10}

That makes your Erlang node save error messages in a binary format in multiple files (hence mf) in ./logs. You can use the report browser (section 2.5, "Report Browser") to access them.

legoscia
  • 2,667