浏览代码

Merge pull request #38 from cehteh/main

Add some documentation bits to the 'stderr' feature
Sam Clements 3 年之前
父节点
当前提交
2d1ebf93ae
共有 2 个文件被更改,包括 10 次插入1 次删除
  1. 9 0
      README.md
  2. 1 1
      src/lib.rs

+ 9 - 0
README.md

@@ -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
 -------
 

+ 1 - 1
src/lib.rs

@@ -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();