log-termination

Provides an attribute proc macro for your fn main() -> Result<(), Box<dyn Error>> which sends returned errors to log::error!.

```rust

![feature(try_trait)]

![feature(terminationtraitlib)]

use logtermination::logtermination;

[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 } ```