Skip to content

Commit

Permalink
Add some documentation bits to the 'stderr' feature
Browse files Browse the repository at this point in the history
  • Loading branch information
cehteh committed Aug 7, 2021
1 parent 9957dc5 commit 3938a05
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ default-features = false
features = ["colors"]
```

To direct logging output to `stderr` use the `stderr` feature:

```
[dependencies.simple_logger]
features = ["stderr"]
```

This can be combined with any other feature.

Licence
-------

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! A logger that prints all messages with a simple, readable output format.
//!
//! Optional features include timestamps and colored output.
//! Optional features include timestamps, colored output and logging to stderr.
//!
//! ```
//! simple_logger::SimpleLogger::new().env().init().unwrap();
Expand Down

0 comments on commit 3938a05

Please sign in to comment.