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
a89e7924
Commit
a89e7924
authored
May 13, 2022
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复等待时间
parent
0a563556
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
Log.java
...util-base/src/main/java/com/yanzuoguang/util/log/Log.java
+5
-3
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/log/Log.java
View file @
a89e7924
package
com
.
yanzuoguang
.
util
.
log
;
import
com.yanzuoguang.util.extend.ConfigBase
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
java.util.Date
;
import
java.util.HashMap
;
...
...
@@ -30,7 +31,8 @@ public class Log {
* @param args
*/
public
static
void
error
(
Class
<?>
cls
,
String
msg
,
Object
...
args
)
{
error
(
cls
,
null
,
msg
,
args
);
String
toMsg
=
getFormat
(
msg
,
args
);
add
(
new
LogInfo
(
cls
,
new
Date
(),
true
,
null
,
toMsg
));
}
/**
...
...
@@ -39,7 +41,7 @@ public class Log {
* @param ex
*/
public
static
void
error
(
Class
<?>
cls
,
Throwable
ex
)
{
error
(
cls
,
ex
,
""
);
add
(
new
LogInfo
(
cls
,
new
Date
(),
ex
!=
null
,
ex
,
StringHelper
.
EMPTY
)
);
}
/**
...
...
@@ -51,7 +53,7 @@ public class Log {
*/
public
static
void
error
(
Class
<?>
cls
,
Throwable
ex
,
String
msg
,
Object
...
args
)
{
String
toMsg
=
getFormat
(
msg
,
args
);
add
(
new
LogInfo
(
cls
,
new
Date
(),
true
,
ex
,
toMsg
));
add
(
new
LogInfo
(
cls
,
new
Date
(),
ex
!=
null
,
ex
,
toMsg
));
}
/**
...
...
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