use panic;
use process;
use Backtrace;
use error;
/// Enables a global panic hook which will log the panic/backtrace before exiting the process.
/// This replaces the default behavior where only the panicing thread is exited,
/// which would leave things running in a degraded state in the context of multiple worker threads.
/// Prints information about the panic and then exits the process.
/// Panic output looks like this:
/// - empty line -
/// panic message+file/line
/// - empty line -
/// stacktrace
/// - empty line -
/// timestamped error with panicing thread's tracing context, and panic message+file/line again