How to output custom json log message #29091
-
hi folks how can i make keycloak use log4j2? or do you see any other option? thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 6 replies
-
Are you saying that |
Beta Was this translation helpful? Give feedback.
-
hi, |
Beta Was this translation helpful? Give feedback.
-
in my case, i'd like to get the log output in format of |
Beta Was this translation helpful? Give feedback.
-
@codespearhead , interesting, it worked now with thanks |
Beta Was this translation helpful? Give feedback.
-
hmm, with more test, the solution is not perfect because it can't handle/escape the double quotes, new lines and other special characters in the log message.
|
Beta Was this translation helpful? Give feedback.
Are you saying that
KC_LOG_CONSOLE_OUTPUT=json
does not work?