# 🚨 panic-log
[](https://github.com/Traverse-Research/panic-log/actions)
[](https://crates.io/crates/panic-log)
[](https://docs.rs/panic-log)
[](https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html)
[](https://github.com/Traverse-Research/panic-log)

[](./CODE_OF_CONDUCT.md)
[](https://traverseresearch.nl)
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:
```toml
[dependencies]
panic-log = "0.3.0"
```
Call this somewhere at the start of your program (after initializing your logger):
```rust
use panic_log::Configuration;
[...]
panic_log::initialize_hook(Configuration::default());
```