This commit is contained in:
zhongchao
2022-04-06 11:09:01 +08:00
parent cba95d81b9
commit f4aa520f45
9 changed files with 45 additions and 9 deletions

View File

@@ -44,6 +44,10 @@ class DevaToolsProvider : IDevaToolsProvider {
MogoLogCatchManager.stopCatchLog(logPrefixName)
}
override fun setTraceLogEnable(enable: Boolean) {
traceManager.setTraceLogEnable(enable)
}
override fun getTraceInfo(): HashMap<Int, ChainLogParam> {
return traceManager.getTraceInfo()
}

View File

@@ -156,6 +156,7 @@ object MogoLogCatchManager : IMogoOnMessageListener<RemoteLogPushContent>, Handl
MoGoAiCloudClientConfig.getInstance().sn,
AppConfigInfo.toString(),
logPrefixName?.replace("_", "-"),
null,
content,
this
)

View File

@@ -58,6 +58,10 @@ class TraceManager {
.init(context, MoGoAiCloudClientConfig.getInstance().sn, pkgName, fwBuildMap)
}
fun setTraceLogEnable(enable:Boolean){
FileWriteManager.getInstance().setLogger(enable)
}
fun getTraceInfo(): HashMap<Int, ChainLogParam> {
return traceInfoCache
}