Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
aa676bc2
Commit
aa676bc2
authored
May 19, 2022
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将源码打包进jar包
parent
2a6c95ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
AspectLogResult.java
.../main/java/com/yanzuoguang/cloud/aop/AspectLogResult.java
+5
-4
No files found.
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/aop/AspectLogResult.java
View file @
aa676bc2
...
@@ -50,11 +50,12 @@ public class AspectLogResult {
...
@@ -50,11 +50,12 @@ public class AspectLogResult {
// @Async
// @Async
public
void
responseLog
(
Class
<?>
cls
,
String
tag
,
String
url
,
boolean
logFlag
,
long
start
,
public
void
responseLog
(
Class
<?>
cls
,
String
tag
,
String
url
,
boolean
logFlag
,
long
start
,
Object
requestBody
,
Object
result
,
Exception
resultEx
,
LogVo
log
)
{
Object
requestBody
,
Object
result
,
Exception
resultEx
,
LogVo
log
)
{
try
{
// 执行时间
// 执行时间
long
time
=
System
.
currentTimeMillis
()
-
start
;
long
time
=
System
.
currentTimeMillis
()
-
start
;
// 全路径
// 全路径
String
fullUrl
=
String
.
format
(
"%s:%s"
,
tag
,
url
);
String
fullUrl
=
String
.
format
(
"%s:%s"
,
tag
,
url
);
try
{
// 输出日志标记
// 输出日志标记
boolean
isLogCommon
=
logFlag
&&
this
.
cloudConfig
.
isLogCommon
();
boolean
isLogCommon
=
logFlag
&&
this
.
cloudConfig
.
isLogCommon
();
boolean
isError
=
resultEx
!=
null
;
boolean
isError
=
resultEx
!=
null
;
...
...
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