20.8.4. Enable Logging for HornetQ
- Editing server configuration files (
standalone-full.xml
andstandalone-full-ha.xml
) manually - Editing server configuration files using the CLI
Procedure 20.1. Set HornetQ logging by editing server configuration files manually
- Open the server configuration file(s) for editing. For example
standalone-full.xml
andstandalone-full-ha.xml
- Navigate to logging subsystem configuration in the file(s). The default configuration looks like this:
<logger category="com.arjuna"> <level name="TRACE"/> </logger> ... <logger category="org.apache.tomcat.util.modeler"> <level name="WARN"/> </logger> ....
- Add the
org.hornetq
logger category along with the desired logging level as shown in the following example:<logger category="com.arjuna"> <level name="TRACE"/> </logger> ... <logger category="org.hornetq"> <level name="INFO"/> </logger> ....
HornetQ logging is enabled and log messages are processed based on the configured log level.
You can also use CLI to add the org.hornetq
logger category along with the desired logging level to server configuration file(s). For more information see: Section 14.3.2, “Configure a Log Category in the CLI”