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
5b447a09
Commit
5b447a09
authored
May 18, 2023
by
jinxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统一日志接入
parent
b8a1ccd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
TabHaobanAppLogController.java
...oban/manage/web/controller/TabHaobanAppLogController.java
+4
-11
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/TabHaobanAppLogController.java
View file @
5b447a09
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.haoban.common.anno.IgnoreLogin
;
import
com.gic.haoban.manage.api.dto.TabHaobanAppLogDTO
;
import
com.gic.haoban.manage.api.service.TabHaobanAppLogApiService
;
import
com.gic.haoban.manage.web.qo.TabHaobanAppLogQO
;
import
jdk.nashorn.internal.ir.annotations.Ignore
;
import
com.gic.log.record.bean.WebErrorLogReport
;
import
com.gic.log.record.util.LogWebErrorLogReportUtil
;
import
org.apache.logging.log4j.LogManager
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
...
...
@@ -25,16 +21,13 @@ public class TabHaobanAppLogController {
private
static
org
.
apache
.
logging
.
log4j
.
Logger
logger
=
LogManager
.
getLogger
(
TabHaobanAppLogController
.
class
);
@Autowired
private
TabHaobanAppLogApiService
tabHaobanAppLogApiService
;
@RequestMapping
(
"/insert_log"
)
@ResponseBody
@IgnoreLogin
@com
.
gic
.
web
.
common
.
ano
.
IgnoreLogin
public
RestResponse
<
Boolean
>
insertLog
(
@RequestBody
TabHaobanAppLogQO
qo
)
{
public
RestResponse
<
Boolean
>
insertLog
(
@RequestBody
WebErrorLogReport
qo
)
{
logger
.
info
(
"插入日志的参数:{}"
,
JSON
.
toJSONString
(
qo
));
tabHaobanAppLogApiService
.
insert
(
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
qo
),
TabHaobanAppLogDTO
.
class
)
);
LogWebErrorLogReportUtil
.
pushWebErrorLogReport
(
qo
);
return
RestResponse
.
successResult
();
}
...
...
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