Skip to content

feat(logging): add crash log directory and panic hook#177

Merged
gi-dellav merged 1 commit into
gi-dellav:mainfrom
wowi42:feat/crash-log-folder
Jul 9, 2026
Merged

feat(logging): add crash log directory and panic hook#177
gi-dellav merged 1 commit into
gi-dellav:mainfrom
wowi42:feat/crash-log-folder

Conversation

@wowi42

@wowi42 wowi42 commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Add a dedicated crash log directory under the data folder and a panic hook that writes a report on every panic.

  • Crash reports go to <data_dir>/logs/crashes/zerostack-crash-<timestamp>_<pid>.log
  • Each report includes timestamp, version, panic message, location, and backtrace
  • The panic hook chains to the default hook so normal stderr output is preserved
  • Added tests for crash log path resolution

@gi-dellav gi-dellav merged commit 78ec8fd into gi-dellav:main Jul 9, 2026
1 check passed
@wowi42 wowi42 deleted the feat/crash-log-folder branch July 9, 2026 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants