From b8209d15d915f72d9abe3a68b76e1f4cfd21eac3 Mon Sep 17 00:00:00 2001
From: mac <user@users-MacBook-Pro.local>
Date: 星期六, 23 九月 2023 14:37:00 +0800
Subject: [PATCH] 2023年09月23日14:36:51

---
 app/src/main/java/com/hdl/photovoltaic/other/HdlLogLogic.java |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/app/src/main/java/com/hdl/photovoltaic/other/HdlLogLogic.java b/app/src/main/java/com/hdl/photovoltaic/other/HdlLogLogic.java
index 8c9892c..602ab43 100644
--- a/app/src/main/java/com/hdl/photovoltaic/other/HdlLogLogic.java
+++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlLogLogic.java
@@ -7,8 +7,19 @@
  */
 public class HdlLogLogic {
 
+
+    /**
+     * 鏄惁闇�瑕佹墦鍗�(true涓嶉渶瑕佹墦鍗�)
+     */
+    public static boolean isDebug = false;
+
     private static volatile HdlLogLogic sHdlLogLogic;
 
+    /**
+     * 鑾峰彇褰撳墠瀵硅薄
+     *
+     * @return HdlLogLogic
+     */
     public static synchronized HdlLogLogic getInstance() {
         if (sHdlLogLogic == null) {
             synchronized (HdlLogLogic.class) {
@@ -21,10 +32,17 @@
     }
 
     public static void print(String tag, String mgs) {
+        if (isDebug) {
+            return;
+        }
         Log.d(tag, mgs);
     }
 
-
-
+    public static void print(String mgs) {
+        if (isDebug) {
+            return;
+        }
+        System.out.println(mgs);
+    }
 
 }

--
Gitblit v1.8.0