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
06e5e0a6
Commit
06e5e0a6
authored
May 08, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Excel导出功能
parent
4ab049b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
ConfigBase.java
...src/main/java/com/yanzuoguang/util/extend/ConfigBase.java
+9
-1
Log.java
...util-base/src/main/java/com/yanzuoguang/util/log/Log.java
+3
-2
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/extend/ConfigBase.java
View file @
06e5e0a6
...
...
@@ -21,5 +21,13 @@ public class ConfigBase {
/**
* 写入日志对象
*/
public
static
RunnableLog
WriteLog
;
private
static
RunnableLog
writeLog
;
public
static
RunnableLog
getWriteLog
()
{
return
writeLog
;
}
public
static
void
setWriteLog
(
RunnableLog
writeLog
)
{
ConfigBase
.
writeLog
=
writeLog
;
}
}
yzg-util-base/src/main/java/com/yanzuoguang/util/log/Log.java
View file @
06e5e0a6
...
...
@@ -7,6 +7,7 @@ import java.util.HashMap;
/**
* 日志操作类
*
* @author 颜佐光
*/
public
class
Log
{
...
...
@@ -96,8 +97,8 @@ public class Log {
date
.
commit
();
info
.
setTime
((
long
)
date
.
getLastSecond
());
info
.
setTotalTime
((
long
)
date
.
getTotalSecond
());
if
(
ConfigBase
.
WriteLog
!=
null
)
{
ConfigBase
.
WriteLog
.
run
(
info
);
if
(
ConfigBase
.
getWriteLog
()
!=
null
)
{
ConfigBase
.
getWriteLog
()
.
run
(
info
);
}
else
{
writeLogDefault
.
run
(
info
);
}
...
...
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