瀏覽代碼

Deprecate `with_target_levels`

piegames 4 年之前
父節點
當前提交
1a336399ff
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/lib.rs

+ 4 - 0
src/lib.rs

@@ -125,6 +125,10 @@ impl SimpleLogger {
 
     /// Override the log level for specific targets.
     #[must_use = "You must call init() to begin logging"]
+    #[deprecated(
+        since = "1.11.0",
+        note = "This is a leftover from before there was the builder pattern. Use [`with_module_level`](#method.with_module_level) instead."
+    )]
     pub fn with_target_levels(
         mut self,
         target_levels: HashMap<String, LevelFilter>,