JLChen
2021-11-15 44155b50cbb4f6ad78474f40331ed8838a3b0d49
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
package com.hdl.sdk.common.utils;
 
/**
 * Created by Tong on 2021/9/23.
 */
public class LogUtils {
 
    private static final String TAG = "HDLSocket";
 
    private boolean isEnabled = true;
 
 
    private LogUtils() {
    }
 
    private static class SingletonInstance {
        private static final LogUtils INSTANCE = new LogUtils();
    }
 
    public static LogUtils getInstance() {
        return SingletonInstance.INSTANCE;
    }
 
    public boolean isEnabled() {
        return isEnabled;
    }
 
    public void setEnabled(boolean enabled) {
        isEnabled = enabled;
    }
 
    public static void d(String tag, String msg) {
 
    }
 
    public static void e(String tag, String msg) {
 
    }
 
    public static void e(String msg, Throwable tr) {
 
    }
 
    public static void w(String tag, String msg) {
 
    }
 
    public static void v(String tag, String msg) {
 
    }
 
    public static void i(String tag, String msg) {
 
    }
}