Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
d501ad9c
Commit
d501ad9c
authored
Apr 28, 2022
by
万齐军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 加apm日志
parent
c45f65eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
maven_push.gradle
maven_push.gradle
+4
-4
build.gradle
ydl-platform/build.gradle
+1
-0
AliYunRichLogsHelper.kt
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/log/AliYunRichLogsHelper.kt
+2
-0
No files found.
maven_push.gradle
View file @
d501ad9c
...
...
@@ -20,10 +20,10 @@ afterEvaluate { project ->
pom
.
artifactId
=
project
.
getName
().
replace
(
'_'
,
"-"
)
pom
.
groupId
=
"com.ydl"
pom
.
version
=
getVersionName
()
//
repository(url: mavenRepositoryUrl) {
//
authentication(userName: "admin", password: "fjoi#1+#@")
//
}
repository
(
url:
mavenLocal
().
url
)
repository
(
url:
mavenRepositoryUrl
)
{
authentication
(
userName:
"admin"
,
password:
"fjoi#1+#@"
)
}
//
repository(url:mavenLocal().url)
}
}
}
...
...
ydl-platform/build.gradle
View file @
d501ad9c
...
...
@@ -75,6 +75,7 @@ dependencies {
//====================YDL Repository====================
// api rootProject.ext.dependencies["ydl-pushagent"]
// api rootProject.ext.dependencies["ydl-hnet"]
implementation
'com.volcengine:apm_insight:1.4.6.cn'
api
(
rootProject
.
ext
.
dependencies
[
"ydl-notracepoint"
])
{
transitive
=
true
exclude
group:
'com.google.code.gson'
,
module:
'gson'
...
...
ydl-platform/src/main/java/com/ydl/ydlcommon/utils/log/AliYunRichLogsHelper.kt
View file @
d501ad9c
package
com.ydl.ydlcommon.utils.log
import
com.aliyun.sls.android.producer.*
import
com.apm.insight.log.VLog
import
com.ydl.ydlcommon.base.BaseApp.Companion.getApp
import
com.ydl.ydlcommon.data.PlatformDataManager.getRam
import
com.ydl.ydlcommon.modular.ModularServiceManager.getPlatformUserService
...
...
@@ -45,6 +46,7 @@ class AliYunRichLogsHelper {
* @param value 具体的状态值
* */
fun
sendRichLog
(
key
:
String
,
value
:
String
)
{
VLog
.
i
(
key
,
value
)
val
log
=
Log
()
val
userInfo
=
getPlatformUserService
()
!!
.
getUser
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment