lixplor opened a new issue #8307:
URL: https://github.com/apache/skywalking/issues/8307


   ### 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
   
   I'm using apm-toolkit-log4j-2.x to print trace id in the log file. It can be 
transfer to TID: xxx when using log4j 2.14.1
   After upgrading to log4j 2.15.0, the pattern layout `%traceId` is recognized 
as `%t` with a word `raceId` by log4j. So I got a log like this:
   
   ```
   2021-12-17 08:00:00.000 INFO http-bio-8080-exec-3raceId c.e.App - This is a 
message
   ```
   
   My log4j2.xml pattern layout config:
   
   ```
   %d{yyyy-MM-dd HH:mm:ss.SSS %-5level %traceId %logger{1.} - %m%n
   ```
   
   ### What you expected to happen
   
   I think there's some changes is new version of log4j. I'm expecting a fix to 
a newer version
   
   ### How to reproduce
   
   Using `log4j 2.15.0`, `apm-tookit-log4j-2.x`
   set log4j2 pattern layout with `%traceId`
   print a log
   
   ### Anything else
   
   Every line of log is printed as this wrong format
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to