pub(crate) fn install_panic_hook()
Expand description
Installs a custom panic hook that will divert panic output to a thread-local capture buffer, but only for threads that have a capture buffer set.
Otherwise, the custom hook delegates to a copy of the default panic hook.