HornetQ logging being sent to console

Solution Verified - Updated -


  • JBoss Enterprise Application Platform (EAP) 5.1.2


  • I have HornetQ configured. In jboss-log4j.xml, the CONSOLE appender is commented out but I'm seeing HornetQ logging being sent to the console, how can I eliminate this?


HornetQ uses Java Utility Logging, which should normally delegate to Log4j. This is performed in conf/bootstrap/logging.xml.
Check to make sure this file exists and hasn't been altered.
It's also possible you've included some sort of logging config in your app that is overriding this, particularly if you are not using log4j.

We have heard reports of a JDK-supplied logging.properties file possibly overriding this, if that's the case you can correct it by adding a command line parameter: -Djava.util.logging.config.file=logging.properties, where the logging.properties is an empty file. This will cause the JVM to use your (no effect) logging.properties file in place of the one supplied by the JDK.

You can also manually redirect the HornetQ logging to log4j by adding this to your command line parameters:

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.