panic-log

Crates.iopanic-log
lib.rspanic-log
version0.3.0
created_at2024-10-18 09:55:04.716273+00
updated_at2024-10-18 09:55:04.716273+00
descriptionLog panics to the `log` macro as error
homepagehttps://traverseresearch.nl
repositoryhttps://github.com/Traverse-Research/panic-log
max_upload_size
id1414108
size5,889
Traverse Research (Traverse-Research-CI-runner)

documentation

README

🚨 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());
Commit count: 17

cargo fmt