Changing logging level at runtime

574 views
Skip to first unread message

Bruno Antunes

unread,
Jun 1, 2023, 4:34:34 AM6/1/23
to Keycloak User
Hello everyone

Do you know if is it possible to change the logging level of certain categories/packages at runtime (without a restart) using Keycloak in Quarkus?

In keycloak running in Wildfly I was able to change the log level at runtime like this:

/opt/jboss/keycloak/bin/jboss-cli.sh --connect
/subsystem=logging/logger=org.hibernate.engine.jdbc.spi.SqlStatementLogger:add
/subsystem=logging/logger=org.hibernate.engine.jdbc.spi.SqlStatementLogger:write-attribute(name=level,value=DEBUG)

Thanks and regards !!

SadaShiv Dash

unread,
Jun 1, 2023, 5:03:05 AM6/1/23
to Bruno Antunes, Keycloak User
Best Regards
Sada Shiv Dash



--
You received this message because you are subscribed to the Google Groups "Keycloak User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keycloak-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/keycloak-user/3f45ab3c-d3f6-44c8-8160-1d14a1f9c35cn%40googlegroups.com.

Thomas Darimont

unread,
Jun 1, 2023, 6:01:49 AM6/1/23
to Keycloak User
You can change the logging level at runtime via JMX.

Quarkus Loggers can be controlled via the java.util.logging mbeans
keycloak_jmx_logging.png
Reply all
Reply to author
Forward
0 new messages