Skip to main content

Module crash_log

Module crash_log 

Source
Expand description

v1.4.110 P1-2: crash log + panic hook helpers

抽自 main.rs lines 20-123 (v1.4.97 P1-D-D 实装). Aligned with C++ NNCrashCenter pattern.

Constants§

DEFAULT_CRASH_LOG_MAX_FILES 🔒

Functions§

crash_header_value 🔒
crash_log_dir 🔒
v1.4.97 P1-D-D: directory holding dated crash logs.
crash_log_unix_secs_or_zero 🔒
format_crash_time 🔒
previous_crash_notice 🔒
prune_old_crash_logs 🔒
warn_if_previous_crash
At startup, scan the crash directory and report the latest crash without destroying the forensic file. A crash from the running daemon version stays prominent; an older-version crash is retained as a quiet archive notice. Best-effort and silent on directory errors.
write_crash_log_file
v1.4.97 P1-D-D: synchronously write a crash log file.