pub fn set_panic_hook()
Installs a panic hook that logs the message and a captured backtrace to the console.