Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
log-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
log-platform
Commits
a9a1cf43
Commit
a9a1cf43
authored
Aug 25, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
异常日志前端展示添加
parent
709888e4
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
873 additions
and
66 deletions
+873
-66
doc/api.md
doc/api.md
+847
-45
log-manager-ui/admin/src/views/access/log/list.vue
log-manager-ui/admin/src/views/access/log/list.vue
+1
-1
log-manager-ui/admin/src/views/access/log/view.vue
log-manager-ui/admin/src/views/access/log/view.vue
+3
-3
log-manager-ui/admin/src/views/biz/log/drawershow.vue
log-manager-ui/admin/src/views/biz/log/drawershow.vue
+1
-2
log-manager-ui/admin/src/views/biz/log/list.vue
log-manager-ui/admin/src/views/biz/log/list.vue
+6
-6
log-manager-ui/admin/src/views/error/log/list.vue
log-manager-ui/admin/src/views/error/log/list.vue
+9
-3
log-manager-ui/admin/src/views/error/log/view.vue
log-manager-ui/admin/src/views/error/log/view.vue
+5
-6
log-manager/src/main/java/com/mortals/xhx/base/framework/listener/ErrorMessageConsumerListener.java
...base/framework/listener/ErrorMessageConsumerListener.java
+1
-0
No files found.
doc/api.md
View file @
a9a1cf43
This diff is collapsed.
Click to expand it.
log-manager-ui/admin/src/views/access/log/list.vue
View file @
a9a1cf43
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
{
label
:
"
请求URI
"
,
prop
:
"
uri
"
},
{
label
:
"
请求URI
"
,
prop
:
"
uri
"
},
{
label
:
"
请求参数
"
,
prop
:
"
requestData
"
},
{
label
:
"
请求参数
"
,
prop
:
"
requestData
"
,
tooltip
:
"
true
"
},
{
label
:
"
日志时间
"
,
prop
:
"
logTime
"
,
formatter
:
this
.
formatterDate
},
{
label
:
"
日志时间
"
,
prop
:
"
logTime
"
,
formatter
:
this
.
formatterDate
},
...
...
log-manager-ui/admin/src/views/access/log/view.vue
View file @
a9a1cf43
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<
template
slot=
"extra"
>
<
template
slot=
"extra"
>
<el-button
type=
"primary"
@
click=
"$router.go(-1)"
size=
"small"
>
返回
</el-button>
<el-button
type=
"primary"
@
click=
"$router.go(-1)"
size=
"small"
>
返回
</el-button>
</
template
>
</
template
>
<el-descriptions-item
label=
"追踪Id"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
<el-descriptions-item
label=
"追踪Id"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
{{form.traceID}}
{{form.traceID}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
label=
"应用名称"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
<el-descriptions-item
label=
"应用名称"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
...
@@ -32,13 +32,13 @@
...
@@ -32,13 +32,13 @@
<el-descriptions-item
label=
"请求URI"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
<el-descriptions-item
label=
"请求URI"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
{{form.uri}}
{{form.uri}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
label=
"请求参数
,json序列化
"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
<el-descriptions-item
label=
"请求参数"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
{{form.requestParam}}
{{form.requestParam}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
label=
"响应结果"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
<el-descriptions-item
label=
"响应结果"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
{{form.response}}
{{form.response}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
label=
"日志
产生
时间"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
<el-descriptions-item
label=
"日志时间"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
{{ util_formatterDate(form.logTime)}}
{{ util_formatterDate(form.logTime)}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
label=
"持续时间,单位毫秒"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
<el-descriptions-item
label=
"持续时间,单位毫秒"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
...
...
log-manager-ui/admin/src/views/biz/log/drawershow.vue
View file @
a9a1cf43
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
size=
"50%"
>
size=
"50%"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"120px"
>
<el-row>
<el-row>
<Field
label=
"追踪
Id"
prop=
"traceID"
v-model=
"form.traceID"
placeholder=
"请输入追踪Id"
/>
<Field
label=
"Trace
Id"
prop=
"traceID"
v-model=
"form.traceID"
placeholder=
"请输入追踪Id"
/>
<Field
label=
"应用名称"
prop=
"appName"
v-model=
"form.appName"
placeholder=
"请输入应用名称"
/>
<Field
label=
"应用名称"
prop=
"appName"
v-model=
"form.appName"
placeholder=
"请输入应用名称"
/>
<Field
label=
"实例IP"
prop=
"hostName"
v-model=
"form.hostName"
placeholder=
"请输入实例IP"
/>
<Field
label=
"实例IP"
prop=
"hostName"
v-model=
"form.hostName"
placeholder=
"请输入实例IP"
/>
<Field
label=
"日志等级"
prop=
"logLevel"
v-model=
"form.logLevel"
placeholder=
"请输入日志等级"
/>
<Field
label=
"日志等级"
prop=
"logLevel"
v-model=
"form.logLevel"
placeholder=
"请输入日志等级"
/>
...
@@ -20,7 +20,6 @@
...
@@ -20,7 +20,6 @@
</el-row>
</el-row>
<form-buttons
@
submit=
'submitForm'
noCancelBtn
/>
</el-form>
</el-form>
</el-drawer>
</el-drawer>
...
...
log-manager-ui/admin/src/views/biz/log/list.vue
View file @
a9a1cf43
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
{
{
name
:
"
eventTopic
"
,
name
:
"
eventTopic
"
,
type
:
"
text
"
,
type
:
"
text
"
,
label
:
"
记录埋点的事件主题
,方便实时计算或同步进行数据筛选
"
,
label
:
"
记录埋点的事件主题
"
,
fuzzy
:
true
fuzzy
:
true
},
},
{
{
...
@@ -91,15 +91,15 @@
...
@@ -91,15 +91,15 @@
{
label
:
"
应用名称
"
,
prop
:
"
appName
"
},
{
label
:
"
应用名称
"
,
prop
:
"
appName
"
},
{
label
:
"
用户
唯一
标识
"
,
prop
:
"
userCode
"
},
{
label
:
"
用户标识
"
,
prop
:
"
userCode
"
},
{
label
:
"
设备
唯一
标识
"
,
prop
:
"
deviceCode
"
},
{
label
:
"
设备标识
"
,
prop
:
"
deviceCode
"
},
{
label
:
"
记录埋点的事件主题,方便实时计算或同步进行数据筛选
"
,
prop
:
"
eventTopic
"
},
{
label
:
"
事件主题
"
,
prop
:
"
eventTopic
"
},
{
label
:
"
记录埋点中文
名称
"
,
prop
:
"
eventTopicName
"
},
{
label
:
"
主题
名称
"
,
prop
:
"
eventTopicName
"
},
{
label
:
"
日志
产生
时间
"
,
prop
:
"
logTime
"
,
formatter
:
this
.
formatterDate
},
{
label
:
"
日志时间
"
,
prop
:
"
logTime
"
,
formatter
:
this
.
formatterDate
},
{
{
label
:
"
操作
"
,
label
:
"
操作
"
,
width
:
120
,
width
:
120
,
...
...
log-manager-ui/admin/src/views/error/log/list.vue
View file @
a9a1cf43
...
@@ -47,13 +47,19 @@
...
@@ -47,13 +47,19 @@
{
{
name
:
"
traceID
"
,
name
:
"
traceID
"
,
type
:
"
text
"
,
type
:
"
text
"
,
label
:
"
追踪
Id
"
,
label
:
"
Trace
Id
"
,
fuzzy
:
true
fuzzy
:
true
},
},
{
{
name
:
"
appName
"
,
name
:
"
appName
"
,
type
:
"
text
"
,
type
:
"
text
"
,
label
:
"
应用名称,宿主客户端运行唯一标识。
"
,
label
:
"
应用标识
"
,
fuzzy
:
true
},
{
name
:
"
message
"
,
type
:
"
text
"
,
label
:
"
消息标识
"
,
fuzzy
:
true
fuzzy
:
true
},
},
],
],
...
@@ -69,7 +75,7 @@
...
@@ -69,7 +75,7 @@
{
label
:
"
消息标识
"
,
prop
:
"
message
"
,
tooltip
:
"
true
"
},
{
label
:
"
消息标识
"
,
prop
:
"
message
"
,
tooltip
:
"
true
"
},
{
label
:
"
当前
客户端使用平台
"
,
prop
:
"
platform
"
,
formatter
:
this
.
formatter
},
{
label
:
"
客户端使用平台
"
,
prop
:
"
platform
"
,
formatter
:
this
.
formatter
},
{
label
:
"
异常事件标记
"
,
prop
:
"
tags
"
},
{
label
:
"
异常事件标记
"
,
prop
:
"
tags
"
},
...
...
log-manager-ui/admin/src/views/error/log/view.vue
View file @
a9a1cf43
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
:direction=
"direction"
:direction=
"direction"
size=
"75%"
>
size=
"75%"
>
<el-descriptions
:column=
"column"
:size=
"size"
:colon=
"false"
border
>
<el-descriptions
:column=
"column"
:size=
"size"
:colon=
"false"
border
>
<el-descriptions-item
label=
"TraceId"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
<el-descriptions-item
label=
"TraceId"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
{{
form
.
traceID
}}
{{
form
.
traceID
}}
</el-descriptions-item>
</el-descriptions-item>
<el-descriptions-item
label=
"应用标识"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
<el-descriptions-item
label=
"应用标识"
label-class-name=
"labelClass"
content-class-name=
"contentClass"
>
...
@@ -113,14 +113,13 @@
...
@@ -113,14 +113,13 @@
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"
less"
>
<
style
lang=
"
scss"
scoped
>
.labelClass
{
.labelClass
{
width
:
250px
;
width
:
250px
;
font-size
:
13px
;
font-size
:
13px
;
color
:
#191a1b
;
}
}
.el-descriptions-item__label{
color: #191a1b;
}
.el-descriptions__body
{
.el-descriptions__body
{
margin-left
:
5px
;
margin-left
:
5px
;
margin-right
:
5px
;
margin-right
:
5px
;
...
@@ -128,6 +127,6 @@ color: #191a1b;
...
@@ -128,6 +127,6 @@ color: #191a1b;
background-color
:
#FFF
;
background-color
:
#FFF
;
}
}
.contentClass
{
.contentClass
{
width:
500
px;
width
:
888
px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
log-manager/src/main/java/com/mortals/xhx/base/framework/listener/ErrorMessageConsumerListener.java
View file @
a9a1cf43
...
@@ -62,6 +62,7 @@ public class ErrorMessageConsumerListener {
...
@@ -62,6 +62,7 @@ public class ErrorMessageConsumerListener {
errorLogEntity
.
setCheckNum
(
errorLogEntity
.
getCheckNum
()+
1
);
errorLogEntity
.
setCheckNum
(
errorLogEntity
.
getCheckNum
()+
1
);
errorLogEntity
.
setLogTime
(
entity
.
getLogTime
());
errorLogEntity
.
setLogTime
(
entity
.
getLogTime
());
errorLogEntity
.
setThreadNo
(
entity
.
getThreadNo
());
errorLogEntity
.
setThreadNo
(
entity
.
getThreadNo
());
errorLogEntity
.
setCreateTime
(
new
Date
());
errorLogEntity
.
setUpdateTime
(
new
Date
());
errorLogEntity
.
setUpdateTime
(
new
Date
());
errorLogService
.
update
(
errorLogEntity
);
errorLogService
.
update
(
errorLogEntity
);
}
else
{
}
else
{
...
...
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