Commit d501ad9c by 万齐军

feat: 加apm日志

parent c45f65eb
...@@ -20,10 +20,10 @@ afterEvaluate { project -> ...@@ -20,10 +20,10 @@ afterEvaluate { project ->
pom.artifactId = project.getName().replace('_', "-") pom.artifactId = project.getName().replace('_', "-")
pom.groupId = "com.ydl" pom.groupId = "com.ydl"
pom.version = getVersionName() pom.version = getVersionName()
// repository(url: mavenRepositoryUrl) { repository(url: mavenRepositoryUrl) {
// authentication(userName: "admin", password: "fjoi#1+#@") authentication(userName: "admin", password: "fjoi#1+#@")
// } }
repository(url:mavenLocal().url) // repository(url:mavenLocal().url)
} }
} }
} }
......
...@@ -75,6 +75,7 @@ dependencies { ...@@ -75,6 +75,7 @@ dependencies {
//====================YDL Repository==================== //====================YDL Repository====================
// api rootProject.ext.dependencies["ydl-pushagent"] // api rootProject.ext.dependencies["ydl-pushagent"]
// api rootProject.ext.dependencies["ydl-hnet"] // api rootProject.ext.dependencies["ydl-hnet"]
implementation 'com.volcengine:apm_insight:1.4.6.cn'
api(rootProject.ext.dependencies["ydl-notracepoint"]) { api(rootProject.ext.dependencies["ydl-notracepoint"]) {
transitive = true transitive = true
exclude group: 'com.google.code.gson', module: 'gson' exclude group: 'com.google.code.gson', module: 'gson'
......
package com.ydl.ydlcommon.utils.log package com.ydl.ydlcommon.utils.log
import com.aliyun.sls.android.producer.* import com.aliyun.sls.android.producer.*
import com.apm.insight.log.VLog
import com.ydl.ydlcommon.base.BaseApp.Companion.getApp import com.ydl.ydlcommon.base.BaseApp.Companion.getApp
import com.ydl.ydlcommon.data.PlatformDataManager.getRam import com.ydl.ydlcommon.data.PlatformDataManager.getRam
import com.ydl.ydlcommon.modular.ModularServiceManager.getPlatformUserService import com.ydl.ydlcommon.modular.ModularServiceManager.getPlatformUserService
...@@ -45,6 +46,7 @@ class AliYunRichLogsHelper { ...@@ -45,6 +46,7 @@ class AliYunRichLogsHelper {
* @param value 具体的状态值 * @param value 具体的状态值
* */ * */
fun sendRichLog(key: String, value: String) { fun sendRichLog(key: String, value: String) {
VLog.i(key, value)
val log = Log() val log = Log()
val userInfo = getPlatformUserService()!!.getUser() val userInfo = getPlatformUserService()!!.getUser()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment