prayjourney opened a new issue, #13449:
URL: https://github.com/apache/skywalking/issues/13449

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Apache SkyWalking Component
   
   Java Agent (apache/skywalking-java)
   
   ### What happened
   
   Use Log4j2, [%traceId] print thread Id  isn't  traceId, I use agent is java 
agent that version is 9.5.0. and i see the doc 
[application-toolkit-log4j-2.x](https://skywalking.apache.org/docs/skywalking-java/v9.5.0/en/setup/service-agent/java-agent/application-toolkit-log4j-2.x/)
  to config my app, but it dosen't work
   <img width="1443" height="126" alt="Image" 
src="https://github.com/user-attachments/assets/7de10f5e-7f12-41ea-87af-e2d7e9b2ab7e";
 />
   
   ### What you expected to happen
   
   it should print traceId ,not thread id
   
   ### How to reproduce
   
   create a springboot app, the log framework use log4j2, and use this pattern 
layout 
   `<Property name="LOG_PATTERN">%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] [%t] 
[traceId= %traceId] %-5level %logger{36} - %msg%n
   </Property>`
   attend to the output of traceId
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request to fix on your own?
   
   - [ ] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.

To unsubscribe, e-mail: 
notifications-unsubscr...@skywalking.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to