Logger that aims to provide a simple case of
env_logger that just
logs to stderr based on verbosity.
Documentation
For a working example for StructOpt, clap, and docopt please see the crate level documentation.
For example binaries showing how
module level logging works, please see the large-example crate in examples/.
Supported Versions
stderrlog0.6.x supports- Rust 1.36.0 and newer
log>= 0.4.11
stderrlog0.5.x supports- Rust 1.36.0 and newer
log>= 0.4.11
stderrlog0.4.x supports- Rust 1.16.0 and newer
log>= 0.4.1
stderrlog0.3.x supports- Rust 1.16.0 and newer
log0.3.x
stderrlog0.2.x supports- Rust 1.13.0 and newer
log>= 0.3.0, < 0.3.9
Usage
Add this to your Cargo.toml:
[]
= "0.4"
and this to your main():
new.verbosity.quiet.init.unwrap;
where your args struct is defined as: