aboutsummaryrefslogtreecommitdiff
path: root/doc/next/6-stdlib/99-minor/runtime/debug/42888.md
blob: a4e812cc0621aa1e3c0d924aa64d28aa28b8d38f (plain)
1
2
3
4
5
6
7
8
The [`debug.SetCrashOutput`](/pkg/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`.