[erlang-questions] error_logger and the perils of asynchronicity

Steve Davis <>
Fri May 15 00:06:10 CEST 2009


I'm pretty sure the messaging backup is caused by the absolutely
necessary use of io:format in the standard error_logger/
error_logger_file_h.

I'm sure that nobody can have missed that io:format even to tty is the
just about the slowest component of any application.

Maybe (just a suggestion) the answer is to install a custom log
handler that writes the entries to a memory cache (ets) then run
another process that works down the table of entries and writes it out
to disk at its own pace?

regs,
Steve




More information about the erlang-questions mailing list