outlog 0.1.0

A simple logging system based on the log crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Custom panic hook support.
//!
//! This does not currently support backtraces,
//! and mainly exists to look nice.

pub fn install_panic_hook() {
    std::panic::set_hook(Box::new(panic_hook));
}

fn panic_hook(info: &std::panic::PanicInfo) {
    log::error!("{}", info);
}