-
Go to $JBOSS_HOME/bin
-
Run the following command -
./jboss-cli.sh --connect controller=localhost:9999
Note : If you're using a port offset, the management console port can be calculated as,
port = managementNativeSocket (9999) + port offSet
-
After connceting to the server, we can execute the following operations -
3.1. Print out all the logger packages available.
ls /subsystem=logging/logger
3.2 Print out the details of a package, e.x. logging level, etc
/subsystem=logging/logger=uk.gov.dwp:read-resource
3.3 Change log level
/subsystem=logging/logger=uk.gov.dwp:change-log-level(level=DEBUG)
3.4 Add a log level
/subsystem=logging/logger=package.name/:add(category=package.name,level=INFO,use-parent-handlers=true)