From a79de3c5eeeb482d3bcf8005df37b7e5580a0038 Mon Sep 17 00:00:00 2001 From: "aleksa.radojicic" Date: Sun, 25 Jan 2026 11:43:02 +0100 Subject: [PATCH] feat(keycloak): add support for KC_LOG_LEVEL env variable KC_LOG_LEVEL is defined in the [official docs](https://www.keycloak.org/server/all-config?q=log-level). --- .env.example | 3 +++ idm/ldap-keycloak.yml | 1 + testing/external-keycloak.yml | 1 + 3 files changed, 5 insertions(+) diff --git a/.env.example b/.env.example index 5e725cb..428d5e8 100644 --- a/.env.example +++ b/.env.example @@ -322,6 +322,9 @@ KEYCLOAK_DOMAIN= KEYCLOAK_ADMIN= # Admin user login password. Defaults to "admin". KEYCLOAK_ADMIN_PASSWORD= +# Configure the log level for Keycloak. +# Possible values are "TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL" and "OFF". Default is "INFO". +KC_LOG_LEVEL= # Keycloak Database username. Defaults to "keycloak". KC_DB_USERNAME= # Keycloak Database password. Defaults to "keycloak". diff --git a/idm/ldap-keycloak.yml b/idm/ldap-keycloak.yml index 038b049..d541fac 100644 --- a/idm/ldap-keycloak.yml +++ b/idm/ldap-keycloak.yml @@ -96,6 +96,7 @@ services: KC_DB_USERNAME: ${KC_DB_USERNAME:-keycloak} KC_DB_PASSWORD: ${KC_DB_PASSWORD:-keycloak} KC_FEATURES: impersonation + KC_LOG_LEVEL: ${KC_LOG_LEVEL:-INFO} KC_PROXY_HEADERS: xforwarded KC_HTTP_ENABLED: true KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN:-kcadmin} diff --git a/testing/external-keycloak.yml b/testing/external-keycloak.yml index 2808fa4..ed4efb7 100644 --- a/testing/external-keycloak.yml +++ b/testing/external-keycloak.yml @@ -32,6 +32,7 @@ services: KC_DB_USERNAME: ${KC_DB_USERNAME:-keycloak} KC_DB_PASSWORD: ${KC_DB_PASSWORD:-keycloak} KC_FEATURES: impersonation + KC_LOG_LEVEL: ${KC_LOG_LEVEL:-INFO} KC_PROXY_HEADERS: xforwarded KC_HTTP_ENABLED: true KEYCLOAK_ADMIN: ${KEYCLOAK_ADMIN:-kcadmin}