Module lager_crash_log

Lager crash log writer.

Behaviours: gen_server.


Lager crash log writer. This module implements a gen_server which writes error_logger error messages out to a file in their original format. The location to which it logs is configured by the application var crash_log. Omitting this variable disables crash logging. Crash logs are printed safely using trunc_io via code mostly lifted from riak_err.

The crash_log_msg_size application var is used to specify the maximum size of any message to be logged. crash_log_size is used to specify the maximum size of the crash log before it will be rotated (0 will disable). Time based rotation is configurable via crash_log_date, the syntax is documented in the README. To control the number of rotated files to be retained, use crash_log_count.

Generated by EDoc