Logging decorator
#39403
-
I would like to enrich each log statement with certain things like a tenant ID. For this I must inject a request scoped bean. How could this be done? I mostly use the simplified logging like |
Beta Was this translation helpful? Give feedback.
Answered by
rquinio
Apr 20, 2024
Replies: 2 comments
-
Easiest is probably to use the MDC API: https://quarkus.io/guides/logging#use-mdc-to-add-contextual-log-information |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
robp94
-
Thanks, @rquinio that's what I was looking for. |
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
Easiest is probably to use the MDC API: https://quarkus.io/guides/logging#use-mdc-to-add-contextual-log-information