pub fn setup()Expand description
Install a process-wide panic hook that preserves the default stderr output, mirrors the message to the log4rs-backed application log, and flushes the logger before returning so the panic message is durable before the panicking thread unwinds.
Must be called after log4rs::init_* so that log::error! reaches
the configured appenders.