Skip to content

Commit

Permalink
Merge pull request #38 from cehteh/main
Browse files Browse the repository at this point in the history
Add some documentation bits to the 'stderr' feature
  • Loading branch information
borntyping authored Aug 8, 2021
2 parents 7b4c3d4 + 66c11d5 commit 2d1ebf9
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 2d1ebf9

Please sign in to comment.