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§
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.