瀏覽代碼

Merge pull request #59 from DesmondWillowbrook/patch-1

doc: call env after with_level
Sam Clements 2 年之前
父節點
當前提交
fab69046c1
共有 1 個文件被更改,包括 2 次插入1 次删除
  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"]