2. Error Logging
2 Error Logging
2.1 Error Information From the Runtime System
Error information from the runtime system, that is, information about a process terminating because of an uncaught error exception, is by default written to terminal (tty):
=ERROR REPORT==== 9-Dec-2003::13:25:02 === Error in process <0.27.0> with exit value: {{badmatch,[1,2,3]},[{m,f,1},{shell,eval_loop,2}]}
The error information is handled by the error logger, a system process registered as error_logger
. This process receives all error messages from the Erlang runtime system as well as from the standard behaviours and different Erlang/OTP applications.
The exit reasons (such as badarg
) used by the runtime system are described in Errors and Error Handling
.
For information about the process error_logger登录查看完整内容