You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/08/26 03:50:42 UTC

[GitHub] [skywalking] zhaoyuguang edited a comment on issue #3284: Log4j2 support AsyncRoot print tid. All versions above 2.0 supported

zhaoyuguang edited a comment on issue #3284: Log4j2 support AsyncRoot print tid. All versions above 2.0 supported
URL: https://github.com/apache/skywalking/pull/3284#issuecomment-524704904
 
 
   @evanxuhe  I tested it, the result is not what we expected, 
   This is my demo:
   pom.xml
   ```
   <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-log4j2</artifactId>
       <version>2.1.2.RELEASE</version>
   </dependency>
   <dependency>
       <groupId>com.lmax</groupId>
       <artifactId>disruptor</artifactId>
       <version>3.4.1</version>
   </dependency>
   <dependency>
       <groupId>org.springframework.boot</groupId>
       <artifactId>spring-boot-starter-web</artifactId>
       <exclusions>
           <exclusion>
               <groupId>org.springframework.boot</groupId>
               <artifactId>spring-boot-starter-logging</artifactId>
           </exclusion>
       </exclusions>
       <version>2.1.2.RELEASE</version>
   </dependency>		
   ```
   log4j2-spring.xml
   ```log4g2-spring.xml
   <?xml version="1.0" encoding="UTF-8"?>
   <Configuration>
       <Appenders>
           <Console name="Console" target="SYSTEM_OUT">
               <PatternLayout pattern="%d [%traceId] %-5p %c{1}:%L - %m%n"/>
           </Console>
       </Appenders>
       <Loggers>
           <AsyncRoot level="INFO">
               <AppenderRef ref="Console"/>
           </AsyncRoot>
       </Loggers>
   </Configuration>
   ```
   ![image](https://user-images.githubusercontent.com/10150229/63663918-07030a00-c7f7-11e9-80d0-5593a81066be.png)
   AsyncLoggerConfig Interceptor run normal but TraceIdConverter Interceptor may not well
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services