panic-log 0.3.1

Log panics to the `log` macro as error
Documentation
  • Coverage
  • 66.67%
    4 out of 6 items documented1 out of 3 items with examples
  • Size
  • Source code size: 6.22 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.32 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Traverse-Research/panic-log
    1 2 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Traverse-Research-CI-runner

🚨 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.1"

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

use panic_log::Configuration;
// ...
panic_log::initialize_hook(Configuration::default());