log-termination =============== Provides an attribute proc macro for your `fn main() -> Result<(), Box>` which sends returned errors to `log::error!`. ```rust #![feature(try_trait)] #![feature(termination_trait_lib)] use log_termination::log_termination; #[log_termination] fn main() -> Result<(), Box> { // set up logging, e.g. fern std::fs::metadata("non-existing-file")?; // will call log::error!("No such file or directory (os error 2)") before exiting } ```