Skip to content

Commit

Permalink
Added info to change CONSOLE log level via jboss-cli
Browse files Browse the repository at this point in the history
It is not enough to change the log level of the ROOT or a individual
logger to change the log level on the Docker container at runtime.
Also the CONSOLE log level has to be adapted accordingly. This info
was added to the README.
  • Loading branch information
alphec authored and stianst committed Nov 8, 2019
1 parent e19999b commit 837e636
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@ Supported log levels are `ALL`, `DEBUG`, `ERROR`, `FATAL`, `INFO`, `OFF`, `TRACE

Log level can also be changed at runtime, for example (assuming docker exec access):

./keycloak/bin/jboss-cli.sh --connect --command='/subsystem=logging/console-handler=CONSOLE:change-log-level(level=DEBUG)'
./keycloak/bin/jboss-cli.sh --connect --command='/subsystem=logging/root-logger=ROOT:change-root-log-level(level=DEBUG)'
./keycloak/bin/jboss-cli.sh --connect --command='/subsystem=logging/logger=org.keycloak:write-attribute(name=level,value=DEBUG)'

Expand Down

0 comments on commit 837e636

Please sign in to comment.