Red Hat Training

A Red Hat training course is available for Red Hat JBoss Enterprise Application Platform

Chapter 5. Configuring Logging

You can configure logging for the messaging-activemq subsystem by adding a log category in the JBoss EAP logging subsystem for org.apache.activemq and setting the desired log level. You can also configure a log handler for the category to configure how the log messages are recorded.

To see more information in the logs regarding XA transactions, change the log level of the com.arjuna category to a more verbose setting such as TRACE or DEBUG.

For more information on logging, including configuration for categories and other options, see the section on logging in the JBoss EAP Configuration Guide.

Table 5.1. Logging Categories

If you want logs for…​Use this category…​

XA transactions


All messaging activity


Messaging Journal calls only


JMS calls only


Messaging utils calls only


Messaging core server only


Configuring a Client for Logging

Configure messaging clients by following these steps.

  1. Download dependencies to the JBoss JMS client and log manager.

    If you are using Maven, add the following dependencies to your pom.xml file:


    For more information, see the section on using Maven with JBoss EAP in the JBoss EAP Development Guide.

  2. Create a properties file for the logger. Name it and save it to a known location. Below is an example properties file. See the section on logging in the JBoss EAP Development Guide for more information on configuring logging options on the client side.

    # Root logger option
    # Root logger level
    # Apache ActiveMQ Artemis logger levels
    # Root logger handlers
    # File handler configuration
    # Formatter pattern configuration
    formatter.PATTERN.pattern=%d{HH:mm:ss,SSS} %-5p [%c] %s%E%n
  3. Start the client with the expected parameters. When starting your client code using the java command, add the following parameters:

    1. Add the JBoss client and logger jars to the class path:

      -cp /path/to/jboss-client.jar:/path/to/jboss-logmanager.jar
    2. Enable the JBoss logging manager:

    3. Set the location of the logging properties file:


    The full command to start the client will look something like the following example:

    $ java -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Dlogging.configuration=/path/to/ -cp /path/to/jboss-client.jar:/path/to/jboss-logmanager.jar org.example.MyClient