Kaynağa Gözat

doc: call env after with_level

I had some trouble with calling the `env` method _before_ the `with_level` method, since I presumed this worked like other builder structs where the order of arguments didn't really matter.
Kartavya Vashishtha 2 yıl önce
ebeveyn
işleme
e026b46e7b
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      src/lib.rs

+ 2 - 1
src/lib.rs

@@ -146,7 +146,8 @@ impl SimpleLogger {
     /// Simulates env_logger behavior, which enables the user to choose log
     /// level by setting a `RUST_LOG` environment variable. This will use
     /// the default level set by [`with_level`] if `RUST_LOG` is not set or
-    /// can't be parsed as a standard log level.
+    /// can't be parsed as a standard log level. 
+    /// (if calling `with_level`, call this after that, otherwise it will have no effect)
     ///
     /// [`with_level`]: #method.with_level
     #[must_use = "You must call init() to begin logging"]