[Bug] Use Log4j2, [%traceId] print thread Id not traceId #13450
Unanswered
prayjourney
asked this question in
Q&A
Replies: 2 comments
-
springboot 3.2.5 + jdk17 +sk agent 9.5.0 |
Beta Was this translation helpful? Give feedback.
0 replies
-
We never read any thread ID. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Search before asking
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 to config my app, but it dosen't work

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?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions