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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
| package ezviz.ezopensdkcommon.common;
|
| import android.util.Log;
|
| public class LogUtil {
|
|
| public static void debugLog(String tag, String content) {
| //托管给xlog
| if (Config.LOGGING) {
| // com.tencent.mars.xlog.Log.d(tag, content);
| Log.i(tag, content);
| }
| }
|
| public static void errorLog(String tag, String content) {
| // error日志直接打印出来,不检查标志位
| Log.e(tag, content);
| // com.tencent.mars.xlog.Log.e(tag, content);
| }
|
| public static void infoLog(String tag, String content) {
| //托管给xlog
| if (Config.LOGGING) {
| Log.i(tag, content);
| // com.tencent.mars.xlog.Log.i(tag, content);
| }
| }
|
| public static void verboseLog(String tag, String content) {
| //托管给xlog
| if (Config.LOGGING) {
| Log.v(tag, content);
| // com.tencent.mars.xlog.Log.v(tag, content);
| }
| }
|
| public static void warnLog(String tag, String content) {
| //托管给xlog
| if (Config.LOGGING) {
| Log.w(tag, content);
| // com.tencent.mars.xlog.Log.w(tag, content);
| }
| }
|
| public static void debugLog(String tag, String content, Exception e) {
| //托管给xlog
| if (Config.LOGGING) {
| Log.d(tag, content, e);
| // com.tencent.mars.xlog.Log.d(tag, content,e);
| }
| }
|
| public static void errorLog(String tag, String content, Exception e) {
| // error日志直接打印出来,不检查标志位
| Log.e(tag, content, e);
| // com.tencent.mars.xlog.Log.e(tag, content,e);
| //
| }
|
| public static void warnLog(String tag, String content, Exception e) {
| //托管给xlog
| if (Config.LOGGING) {
| Log.w(tag, content, e);
| // com.tencent.mars.xlog.Log.w(tag, content,e.getCause());
|
| }
| }
|
| public static void warnLog(String tag, Exception ex) {
| //托管给xlog
| if (Config.LOGGING) {
| Log.w(tag, ex);
| // com.tencent.mars.xlog.Log.w(tag, "warnLog",ex.getCause());
| }
| }
|
| public static void d(String tag, String content) {
| //托管给xlog
| if (Config.LOGGING) {
| Log.d(tag, content);
| // com.tencent.mars.xlog.Log.d(tag, content);
| //
| }
| }
|
| public static void e(String tag, String content) {
| // error日志直接打印出来,不检查标志位
| Log.e(tag, content);
| // com.tencent.mars.xlog.Log.e(tag, content);
|
| }
|
| public static void i(String tag, String content) {
| // info日志直接打印出来,不检查标志位
| Log.i(tag, content);
| // com.tencent.mars.xlog.Log.i(tag, content);
|
| }
|
| public static void v(String tag, String content) {
| //托管给xlog
| if (Config.LOGGING) {
| Log.v(tag, content);
| // com.tencent.mars.xlog.Log.v(tag, content);
| //
| }
| }
|
| public static void w(String tag, String content) {
| //托管给xlog
| if (Config.LOGGING) {
| Log.w(tag, content);
| // com.tencent.mars.xlog.Log.w(tag, content);
| //
| }
| }
|
| public static void d(String tag, String content, Exception e) {
| //托管给xlog
| if (Config.LOGGING) {
| Log.d(tag, content, e);
| // com.tencent.mars.xlog.Log.d(tag, content,e.getCause());
| //
| }
| }
|
|
| public static void printErrStackTrace(String tag, Throwable throwable) {
| //托管给xlog
| if (Config.LOGGING && throwable != null && throwable.getMessage() != null) {
| // com.tencent.mars.xlog.Log.printErrStackTrace(tag, throwable,"printErrStackTrace");
| Log.d(tag, throwable.getMessage());
| }
| }
| public static void printErrStackTrace(String tag, Throwable throwable,String format,Object... obj) {
| //托管给xlog
| if (Config.LOGGING) {
| // com.tencent.mars.xlog.Log.printErrStackTrace(tag, throwable,format,obj);
| Log.d(tag, throwable.getMessage());
| }
| }
|
| public static void e(String tag, String content, Exception e) {
| // error日志直接打印出来,不检查标志位
| Log.e(tag, content, e);
| // com.tencent.mars.xlog.Log.e(tag, content,e.getCause());
|
| }
|
| public static void w(String tag, String content, Exception e) {
| //托管给xlog
| if (Config.LOGGING) {
| Log.w(tag, content, e);
| // com.tencent.mars.xlog.Log.w(tag, content,e.getCause());
| //
| }
| }
|
| public static void w(String tag, Exception ex) {
| //托管给xlog
| if (Config.LOGGING) {
| Log.w(tag, ex);
| // com.tencent.mars.xlog.Log.w(tag, "w",ex.getCause());
| //
| }
| }
| }
|
|