Skip to content

Instantly share code, notes, and snippets.

@sachin-handiekar
Last active October 9, 2018 01:27
Show Gist options
  • Save sachin-handiekar/ee015968ed2ae1f5f609 to your computer and use it in GitHub Desktop.
Save sachin-handiekar/ee015968ed2ae1f5f609 to your computer and use it in GitHub Desktop.
Changing log level in jBoss EAP 6 without restarting the server
  1. Go to $JBOSS_HOME/bin

  2. 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

Standalone Mode

  1. 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)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment