Module panic_handler

Module panic_handler 

Source

Functionsยง

setup
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.