提交 1ab4858f 编写于 作者: wu-sheng's avatar wu-sheng

Add comments on “application-toolkit” module.

上级 f5de30b1
......@@ -4,6 +4,9 @@ import org.apache.log4j.helpers.PatternConverter;
import org.apache.log4j.spi.LoggingEvent;
/**
* Default implementation outputs "TID: N/A".
* But, if in sky-walking agent active mode, output will become the real TraceId.
* <p>
* Created by wusheng on 2016/12/7.
*/
......
......@@ -3,8 +3,12 @@ package com.a.eye.skywalking.toolkit.log.log4j.v1.x;
import org.apache.log4j.PatternLayout;
import org.apache.log4j.helpers.PatternParser;
import org.apache.log4j.spi.LoggingEvent;
/**
* The log4j extend pattern.
* By using this pattern, if sky-walking agent is also active, {@link PatternParser#finalizeConverter(char)} method will be override dynamic.
* <p>
* Created by wusheng on 2016/12/7.
*/
public class TraceIdPatternLayout extends PatternLayout {
......
......@@ -3,9 +3,10 @@ package com.a.eye.skywalking.toolkit.log.log4j.v1.x;
import org.apache.log4j.helpers.PatternParser;
/**
* Base on '%T', use {@link TraceIdPatternConverter} to convert the '%t' to traceId.
* <p>
* Created by wusheng on 2016/12/7.
*/
public class TraceIdPatternParser extends PatternParser {
public TraceIdPatternParser(String pattern) {
super(pattern);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册