[6.4.0][全量日志] 将VLOG改成Logger(暂时)

This commit is contained in:
renwj
2024-04-19 17:43:54 +08:00
parent 37a9c29b32
commit 01b8f4a434

View File

@@ -4,6 +4,7 @@ import android.os.Handler
import android.os.HandlerThread
import android.util.Log
import com.apm.insight.log.VLog
import com.mogo.eagle.core.utilcode.mogo.logger.Logger
class VLogUtils {
@@ -22,7 +23,7 @@ class VLogUtils {
handler.post {
runCatching {
handleMsg("time:$time, msg:$msg", max).forEach {
VLog.d(tag, it)
Logger.d(tag, it)
}
}
}
@@ -34,7 +35,7 @@ class VLogUtils {
handler.post {
runCatching {
handleMsg("time:$time, msg:$msg", max).forEach {
VLog.v(tag, it)
Logger.v(tag, it)
}
}
}
@@ -46,7 +47,7 @@ class VLogUtils {
handler.post {
runCatching {
handleMsg("time:$time, msg:$msg", max).forEach {
VLog.w(tag, it)
Logger.w(tag, it)
}
}
}
@@ -58,7 +59,7 @@ class VLogUtils {
handler.post {
runCatching {
handleMsg("time:$time, msg:$msg", max).forEach {
VLog.e(tag, it)
Logger.e(tag, it)
}
}
}