1 unstable release

0.3.0 Oct 18, 2024

#786 in Debugging

Download history 148/week @ 2024-10-13 112/week @ 2024-10-20 73/week @ 2024-10-27 41/week @ 2024-11-03 5/week @ 2024-11-10 76/week @ 2024-11-17 27/week @ 2024-11-24 69/week @ 2024-12-01

178 downloads per month

MIT license

5KB

🚨 panic-log

Actions Status Latest version Documentation MSRV Lines of code MIT Contributor Covenant

Banner

A simple crate that allows you to write the panic message and backtrace to the output of the log macro as error, while providing the possibility to keep the original panic hooks.

Usage

Add this to your Cargo.toml:

[dependencies]
panic-log = "0.3.0"

Call this somewhere at the start of your program (after initializing your logger):

use panic_log::Configuration;
[...]
panic_log::initialize_hook(Configuration::default());

Dependencies

~86KB