Skip to content

Commit

Permalink
JobHandler中开启子线程时,支持子线程输出执行日志并通过Rolling查看。(From:kangxinghua@github)
Browse files Browse the repository at this point in the history
  • Loading branch information
xueli.xue committed May 7, 2017
1 parent 7b59be4 commit 14767e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
public class XxlJobFileAppender {
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 InheritableThreadLocal<String> contextHolder = new InheritableThreadLocal<String>();
public static SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
Expand Down

0 comments on commit 14767e3

Please sign in to comment.