Jelajahi Sumber

Add some documentation bits to the 'stderr' feature

Christian Thäter 3 tahun lalu
induk
melakukan
3938a05f34
2 mengubah file dengan 10 tambahan dan 1 penghapusan
  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();