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