I want to change the log level in a Docker container to see if it can shed any light on an issue I am seeing. This does not appear to be obviously documented in the Keycloak documentation, but Google suggests environment variable KEYCLOAK_LOGLEVEL. I have also tried KC_LOGLEVEL.
The environment variable in this docker compose snippet does not appear to make any difference to the log output. Is it incorrect?
That page doesn’t mention KC_LOGLEVEL, or any environment variables, that I can see? KC_LOGLEVEL had no obvious effect when I tried it, but I will try again.
I kind of expected the environment variables to be documented in the container documentation, but I couldn’t see a log level variable there either.
@tsr2:
If you expand the various log config options, you will find the exact spelling of the environment variables. For how Keycloak can be configured, see Configuring Keycloak - Keycloak
As Keycloak can be configured independently from how it is deployed/operated, you won’t find a deployment-specific config document. No matter how Keycloak is deployed, one can use all options to configure Keycloak.
Don’t ask Google, RTFM!
RTFM is good advice, but it’s not always easy to find the right page, I looked at the pages I expected to document it and didn’t find it in those pages. Obviously I didn’t find that page with the full list of options.
Thank you
Hi,
I came across this post, double clicked “KC_LOG_LEVEL” and copied, followed the link yet I was unable to find KC_LOG_LEVEL. Do the docs need updating?