stderrlog
Logger that logs to stderr based on verbosity specified
Documentation
Module documentation with examples
Usage
Add this to your Cargo.toml
:
[]
= "*"
and this to your crate root:
extern crate stderrlog;
and this to your main():
.verbosity.quiet.init.unwrap;
new
where your getopt/Docopt args are defined as:
{
Example
extern crate docopt;
extern crate log;
extern crate rustc_serialize;
extern crate stderrlog;
use Docopt;
const USAGE: &'static str = "
Usage: program [-q] [-v...]
";