aboutsummaryrefslogtreecommitdiff
path: root/doc/next/6-stdlib/99-minor/runtime/debug/42888.md
blob: d75c86900f136bd16d6abf9d6f031e503b66d03b (plain)
1
2
3
4
5
6
7
8
The [`debug.SetCrashOutput`](/runtime#SetCrashOutput) function allows
the user to specify an alternate file to which the runtime should
write its fatal crash report
([#42888](https://github.com/golang/go/issues/42888)).
It may be used to construct an automated reporting mechanism for all
unexpected crashes, not just those in goroutines that explicitly use
`recover`.