1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
stderrlog
=========
Logger that logs to stderr based on verbosity specified
Add this to your `Cargo.toml`:
```toml
[dependencies]
stderrlog = "*"
```
and this to your crate root:
```rust
extern crate stderrlog;
```
and this to your main():
```rust
stderrlog::new().verbosity(args.flag_v).quiet(args.flag_q).init().unwrap();
```
where your getopt/Docopt args are defined as:
```rust
struct {
}
```