Skip to content

Commit 37f1917

Browse files
committed
[android] 回滚原有方法
1 parent e2c0ee6 commit 37f1917

File tree

1 file changed

+17
-4
lines changed
  • GaiaXAndroid/src/main/kotlin/com/alibaba/gaiax/utils

1 file changed

+17
-4
lines changed

GaiaXAndroid/src/main/kotlin/com/alibaba/gaiax/utils/Log.kt

+17-4
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,18 @@ object Log {
2222

2323
const val TAG = "GaiaX.SDK"
2424

25-
fun d(tag: String, msg: String) {
26-
log(DEBUG, tag, msg)
25+
/**
26+
* 不可删除、不可修改
27+
*/
28+
fun d(tag: String?, msg: String) {
29+
log(DEBUG, tag ?: TAG, msg)
2730
}
2831

29-
fun e(tag: String, msg: String) {
30-
log(ERROR, tag, msg)
32+
/**
33+
* 不可删除、不可修改
34+
*/
35+
fun e(tag: String?, msg: String) {
36+
log(ERROR, tag ?: TAG, msg)
3137
}
3238

3339
fun log(type: Int, tag: String, msg: String) {
@@ -51,6 +57,13 @@ object Log {
5157
log(type, if (tag.isEmpty()) TAG else "${TAG}.${tag}", block())
5258
}
5359
}
60+
61+
/**
62+
* 不可删除、不可修改
63+
*/
64+
fun isLog(): Boolean {
65+
return defaultLog
66+
}
5467
}
5568

5669
/**

0 commit comments

Comments
 (0)