Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
01899915
Commit
01899915
authored
Jul 09, 2021
by
李学兴
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '20210702-日志规范-lxx' into qa
parents
2bbb31b1
61ce2d25
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
10 deletions
+6
-10
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/util/ShoppingSdkLogUtil.java
+2
-3
call-back-service/src/main/java/cn/freemud/utils/LogUtil.java
+2
-3
ordercenter-sdk/src/main/java/com/freemud/application/sdk/api/ordercenter/util/LogUtil.java
+2
-4
No files found.
assortment-shoppingcart-sdk/src/main/java/com/freemud/sdk/api/assortment/shoppingcart/util/ShoppingSdkLogUtil.java
View file @
01899915
...
@@ -6,14 +6,13 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -6,14 +6,13 @@ import com.alibaba.fastjson.JSONObject;
import
com.freemud.application.sdk.api.log.ApiLog
;
import
com.freemud.application.sdk.api.log.ApiLog
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.helpers.MessageFormatter
;
import
org.springframework.beans.BeansException
;
import
org.springframework.beans.BeansException
;
import
org.springframework.beans.factory.BeanFactory
;
import
org.springframework.beans.factory.BeanFactory
;
import
org.springframework.beans.factory.BeanFactoryAware
;
import
org.springframework.beans.factory.BeanFactoryAware
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.text.MessageFormat
;
/**
/**
* All rights Reserved, Designed By www.freemud.cn
* All rights Reserved, Designed By www.freemud.cn
*
*
...
@@ -59,7 +58,7 @@ public class ShoppingSdkLogUtil implements BeanFactoryAware {
...
@@ -59,7 +58,7 @@ public class ShoppingSdkLogUtil implements BeanFactoryAware {
param3
=
clone
[
2
]
instanceof
String
?
(
String
)
clone
[
2
]
:
JSON
.
toJSONString
(
clone
[
2
]);
param3
=
clone
[
2
]
instanceof
String
?
(
String
)
clone
[
2
]
:
JSON
.
toJSONString
(
clone
[
2
]);
}
}
try
{
try
{
ApiLog
.
printLog
(
MessageFormat
.
format
(
message
,
params
),
param1
,
param2
,
param3
);
ApiLog
.
printLog
(
MessageFormat
ter
.
arrayFormat
(
message
,
params
).
getMessage
(
),
param1
,
param2
,
param3
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
com
.
freemud
.
application
.
sdk
.
api
.
log
.
ErrorLog
.
errorDev
(
"LogUtil.printLog "
.
concat
(
message
),
e
,
params
);
com
.
freemud
.
application
.
sdk
.
api
.
log
.
ErrorLog
.
errorDev
(
"LogUtil.printLog "
.
concat
(
message
),
e
,
params
);
}
}
...
...
call-back-service/src/main/java/cn/freemud/utils/LogUtil.java
View file @
01899915
...
@@ -18,11 +18,10 @@ import com.freemud.application.sdk.api.log.ApiLog;
...
@@ -18,11 +18,10 @@ import com.freemud.application.sdk.api.log.ApiLog;
import
com.freemud.application.sdk.api.log.ErrorLog
;
import
com.freemud.application.sdk.api.log.ErrorLog
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.helpers.MessageFormatter
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.text.MessageFormat
;
@Component
@Component
public
class
LogUtil
{
public
class
LogUtil
{
...
@@ -52,7 +51,7 @@ public class LogUtil {
...
@@ -52,7 +51,7 @@ public class LogUtil {
param3
=
clone
[
2
]
instanceof
String
?
(
String
)
clone
[
2
]
:
JSON
.
toJSONString
(
clone
[
2
]);
param3
=
clone
[
2
]
instanceof
String
?
(
String
)
clone
[
2
]
:
JSON
.
toJSONString
(
clone
[
2
]);
}
}
try
{
try
{
ApiLog
.
printLog
(
MessageFormat
.
format
(
message
,
params
),
param1
,
param2
,
param3
);
ApiLog
.
printLog
(
MessageFormat
ter
.
arrayFormat
(
message
,
params
).
getMessage
(
),
param1
,
param2
,
param3
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
ErrorLog
.
errorDev
(
"LogUtil.printLog "
.
concat
(
message
),
e
,
params
);
ErrorLog
.
errorDev
(
"LogUtil.printLog "
.
concat
(
message
),
e
,
params
);
}
}
...
...
ordercenter-sdk/src/main/java/com/freemud/application/sdk/api/ordercenter/util/LogUtil.java
View file @
01899915
...
@@ -15,15 +15,13 @@ package com.freemud.application.sdk.api.ordercenter.util;
...
@@ -15,15 +15,13 @@ package com.freemud.application.sdk.api.ordercenter.util;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.freemud.application.sdk.api.log.ApiLog
;
import
com.freemud.application.sdk.api.log.ApiLog
;
import
com.freemud.application.sdk.api.log.ErrorLog
;
import
com.freemud.application.sdk.api.log.ErrorLog
;
import
lombok.extern.log4j.Log4j
;
import
lombok.extern.log4j.Log4j2
;
import
lombok.extern.log4j.Log4j2
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.helpers.MessageFormatter
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.text.MessageFormat
;
@Component
@Component
@Log4j2
@Log4j2
public
class
LogUtil
{
public
class
LogUtil
{
...
@@ -54,7 +52,7 @@ public class LogUtil {
...
@@ -54,7 +52,7 @@ public class LogUtil {
param3
=
clone
[
2
]
instanceof
String
?
(
String
)
clone
[
2
]
:
JSON
.
toJSONString
(
clone
[
2
]);
param3
=
clone
[
2
]
instanceof
String
?
(
String
)
clone
[
2
]
:
JSON
.
toJSONString
(
clone
[
2
]);
}
}
try
{
try
{
ApiLog
.
printLog
(
MessageFormat
.
format
(
message
,
params
),
param1
,
param2
,
param3
);
ApiLog
.
printLog
(
MessageFormat
ter
.
arrayFormat
(
message
,
params
).
getMessage
(
),
param1
,
param2
,
param3
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
ErrorLog
.
errorDev
(
"LogUtil.printLog "
.
concat
(
message
),
e
,
params
);
ErrorLog
.
errorDev
(
"LogUtil.printLog "
.
concat
(
message
),
e
,
params
);
}
}
...
...
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