stderrlog 0.1.0

Logger that logs to stderr based on verbosity specified

stderrlog

Logger that logs to stderr based on verbosity specified

Documentation

Usage

Add this to your Cargo.toml:

[dependencies]
stderrlog = "*"

and this to your crate root:

extern crate stderrlog;

and this to your main():

stderrlog::new().verbosity(args.flag_v).quiet(args.flag_q).init().unwrap();

where your getopt/Docopt args are defined as:

struct {
    flag_v: usize,
    flag_q: bool,
    ...
}