Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
14767e30
authored
May 07, 2017
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
JobHandler中开启子线程时,支持子线程输出执行日志并通过Rolling查看。(From:kangxinghua@github)
parent
7b59be46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
xxl-job-core/src/main/java/com/xxl/job/core/log/XxlJobFileAppender.java
xxl-job-core/src/main/java/com/xxl/job/core/log/XxlJobFileAppender.java
View file @
14767e30
...
@@ -16,7 +16,7 @@ import java.util.Date;
...
@@ -16,7 +16,7 @@ import java.util.Date;
public
class
XxlJobFileAppender
{
public
class
XxlJobFileAppender
{
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
XxlJobFileAppender
.
class
);
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
XxlJobFileAppender
.
class
);
// for JobThread (support log for child thread)
// for JobThread (support log for child thread
of job handler
)
//public static ThreadLocal<String> contextHolder = new ThreadLocal<String>();
//public static ThreadLocal<String> contextHolder = new ThreadLocal<String>();
public
static
InheritableThreadLocal
<
String
>
contextHolder
=
new
InheritableThreadLocal
<
String
>();
public
static
InheritableThreadLocal
<
String
>
contextHolder
=
new
InheritableThreadLocal
<
String
>();
public
static
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
public
static
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
...
...
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