log-derive
A Rust macro to part of the log facade that auto generates loggings for functions output.
Usage
Add this to your Cargo.toml:
[]
= "0.2"
and for Rust Edition 2015 add this to your crate root:
extern crate log_derive;
In Rust Edition 2018 you can simply do:
use logfn;
After that all you need is to add the macro above a function that returns an output that implements the Debug trait.
Examples