From 3938a05f347bb0460bb3d8afa4636ee209f36177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Th=C3=A4ter?= Date: Sun, 8 Aug 2021 01:35:39 +0200 Subject: [PATCH] Add some documentation bits to the 'stderr' feature --- README.md | 9 +++++++++ src/lib.rs | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f438d4f..1d466c0 100644 --- a/README.md +++ b/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 ------- diff --git a/src/lib.rs b/src/lib.rs index 9e4a9ce..12402d7 100644 --- a/src/lib.rs +++ b/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();