We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2c0ee6 commit 37f1917Copy full SHA for 37f1917
GaiaXAndroid/src/main/kotlin/com/alibaba/gaiax/utils/Log.kt
@@ -22,12 +22,18 @@ object Log {
22
23
const val TAG = "GaiaX.SDK"
24
25
- fun d(tag: String, msg: String) {
26
- log(DEBUG, tag, msg)
+ /**
+ * 不可删除、不可修改
27
+ */
28
+ fun d(tag: String?, msg: String) {
29
+ log(DEBUG, tag ?: TAG, msg)
30
}
31
- fun e(tag: String, msg: String) {
- log(ERROR, tag, msg)
32
33
34
35
+ fun e(tag: String?, msg: String) {
36
+ log(ERROR, tag ?: TAG, msg)
37
38
39
fun log(type: Int, tag: String, msg: String) {
@@ -51,6 +57,13 @@ object Log {
51
57
log(type, if (tag.isEmpty()) TAG else "${TAG}.${tag}", block())
52
58
53
59
60
+
61
62
63
64
+ fun isLog(): Boolean {
65
+ return defaultLog
66
+ }
54
67
55
68
56
69
/**
0 commit comments