Pretty format panic

Is there a way to control the formatting of panic? Ideally to get the info from it in a structured way and then maybe give back a new String or formatter?

You can set a panic hook using std::panic::set_hook.

1 Like