소스 검색

Add some documentation bits to the 'stderr' feature

Christian Thäter 3 년 전
부모
커밋
3938a05f34
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();