Replies: 1 comment
-
Is there someone quickly check? If there is some missing information, please, state it. I will provide. |
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.
-
jboss-logging is not selecting Log4j2LoggerProvider on Quarkus. I have pushed issue on https://github.com/cembilgin/quarkuslog4j2mdcissueapp . I also published issue on https://stackoverflow.com/questions/76834740/mdc-content-is-not-printed-via-log4j2-jboss-logmanager-on-quarkus . I didn't get any solutions.
I debugged the source of jboss-logging 3.5.0.Final. LoggerProviders tries to find log4j2 related classes, but not able to find due to ClassNotFoundException, then tries jboss log manager. In runtime, log4j2 classes are available. On the other hand, in build time is not available.
My unit test (MDCLog4j2ResourceTest) successfully passes, My intention is to apply this approach to runtime app, but somehow it is not working. One hint If I put @QuarkusTest annotation in my test class, it starts failing. It indicates problem comes from Quarkus.
Did I understand something wrongly? I follow this documentation to implement log4j2 logging on Quarkus and use MDC together https://quarkus.io/guides/logging#add-a-logging-adapter-to-your-application
Beta Was this translation helpful? Give feedback.
All reactions