Adfer (Welsh: recover). Built into the Core struct: defer c.Crash().Recover() // capture panics c.Crash().SafeGo(fn) // safe goroutine c.Crash().Reports(5) // last 5 crash reports CrashReport includes: timestamp, error, stack trace, system info (OS/arch/Go version), custom metadata. Optional file output: JSON array of crash reports. Zero external dependencies. Based on leaanthony/adfer (168 lines), integrated into pkg/core. Co-Authored-By: Virgil <virgil@lethean.io> |
||
|---|---|---|
| .. | ||
| core | ||
| log | ||
| mnt | ||