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.

Functions§

crash_log_dir 🔒
v1.4.97 P1-D-D: directory holding dated crash logs.
warn_if_previous_crash
v1.4.97 P1-D-D: at startup, scan crash dir for previous crashes, emit a WARN log with the latest filename so ops sees “daemon previously crashed at ” without manual file inspection. Best-effort, silent on errors.
write_crash_log_file
v1.4.97 P1-D-D: synchronously write a crash log file.