Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save netstart/427c71bf6ef62532f01ca073b66f7d83 to your computer and use it in GitHub Desktop.
Save netstart/427c71bf6ef62532f01ca073b66f7d83 to your computer and use it in GitHub Desktop.
Switch WildFly to debug mode in Runtime using jboss-cli
# switch the log level to DEBUG on console
{wildfly}/bin/jboss-cli.sh --connect
[standalone@localhost:9990 /] /subsystem=logging/console-handler=CONSOLE:write-attribute(name=level,value=DEBUG)
[standalone@localhost:9990 /] /subsystem=logging/root-logger=ROOT:write-attribute(name=level,value=DEBUG)
# switch it back to whatever it was initial configuration (here it is INFO)
[standalone@localhost:9990 /] /subsystem=logging/console-handler=CONSOLE:write-attribute(name=level,value=INFO)
[standalone@localhost:9990 /] /subsystem=logging/root-logger=ROOT:write-attribute(name=level,value=INFO)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment