package org.skywalking.apm.toolkit.log.log4j.v1.x;

import org.apache.log4j.PatternLayout;
import org.apache.log4j.helpers.PatternParser;

/**
 * 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>
 *
 * @author wusheng
 */
public class TraceIdPatternLayout extends PatternLayout {
    @Override
    protected PatternParser createPatternParser(String pattern) {
        return new TraceIdPatternParser(pattern);
    }
}
