Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
b11fc032
Commit
b11fc032
authored
Aug 15, 2023
by
songyinghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 路径调整
parent
1d4d36e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
1 deletions
+35
-1
TabHaobanAppLogController.java
...oban/manage/web/controller/TabHaobanAppLogController.java
+6
-1
ErrorLogReportQO.java
.../gic/haoban/manage/web/qo/logrecord/ErrorLogReportQO.java
+29
-0
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/TabHaobanAppLogController.java
View file @
b11fc032
...
...
@@ -3,6 +3,7 @@ package com.gic.haoban.manage.web.controller;
import
com.alibaba.fastjson.JSON
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.haoban.common.anno.IgnoreLogin
;
import
com.gic.haoban.manage.web.qo.logrecord.ErrorLogReportQO
;
import
com.gic.log.record.bean.WebErrorLogReport
;
import
com.gic.log.record.util.LogWebErrorLogReportUtil
;
import
org.apache.logging.log4j.LogManager
;
...
...
@@ -27,9 +28,13 @@ public class TabHaobanAppLogController {
@ResponseBody
@IgnoreLogin
@com
.
gic
.
web
.
common
.
ano
.
IgnoreLogin
public
RestResponse
<
Boolean
>
insertLog
(
@RequestBody
WebErrorLogReport
qo
)
{
public
RestResponse
<
Boolean
>
insertLog
(
@RequestBody
ErrorLogReportQO
qo
)
{
logger
.
info
(
"插入日志的参数:{}"
,
JSON
.
toJSONString
(
qo
));
qo
.
setCreateTime
(
new
Date
());
if
(
qo
.
getType
()
!=
null
&&
qo
.
getType
()
==
1
)
{
logger
.
info
(
"TabHaobanAppLogController 日志内容:{}"
,
JSON
.
toJSONString
(
qo
));
return
RestResponse
.
successResult
();
}
LogWebErrorLogReportUtil
.
pushWebErrorLogReport
(
qo
);
return
RestResponse
.
successResult
();
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/qo/logrecord/ErrorLogReportQO.java
0 → 100644
View file @
b11fc032
package
com
.
gic
.
haoban
.
manage
.
web
.
qo
.
logrecord
;
import
com.gic.log.record.bean.WebErrorLogReport
;
/**
* @Author MUSI
* @Date 2023/8/15 2:27 PM
* @Description
* @Version
**/
public
class
ErrorLogReportQO
extends
WebErrorLogReport
{
private
static
final
long
serialVersionUID
=
-
2657084366633675726L
;
/**
* 0 获取null 正常记录
* 1 只记录log日志,不记录到ES
*/
private
Integer
type
;
public
Integer
getType
()
{
return
type
;
}
public
void
setType
(
Integer
type
)
{
this
.
type
=
type
;
}
}
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