Title: HornetQ Logging Documentation Missing Describe the issue: Documentation for HornetQ logging is not present and/or not sufficient. In support case 00897472, customer was referred to this community documentation link: http://docs.jboss.org/hornetq/2.2.14.Final/user-manual/en/html/logging.html Suggestions for improvement: Would like to have information that is important enough to send to customers to be in the enterprise documentation, not just the community documentation. Additional information:
Logging for HornetQ in EAP 6.x must be set in logging subsystem in standalone-full...xml. For example by: <profile> <subsystem xmlns="urn:jboss:domain:logging:1.2"> <console-handler name="CONSOLE"> <level name="DEBUG"/> <formatter> <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/> </formatter> </console-handler> <periodic-rotating-file-handler name="FILE"> <formatter> <pattern-formatter pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/> </formatter> <file relative-to="jboss.server.log.dir" path="server.log"/> <suffix value=".yyyy-MM-dd"/> <append value="true"/> </periodic-rotating-file-handler> <logger category="com.arjuna"> <level name="TRACE"/> </logger> ... <logger category="org.hornetq"> <level name="INFO"/> </logger> <!--<logger category="org.jboss.netty"> <level name="TRACE"/> </logger>--> ... <root-logger> <level name="TRACE"/> <handlers> <handler name="CONSOLE"/> <handler name="FILE"/> </handlers> </root-logger> </subsystem>
Hi Nidhi, yes, primary information is that it's needed to add "org.hornetq" category with desired logging level to logging subsystem. This is also possible to add using CLI - we should add reference to Chapter 14. The Logging Subsystem for more details (more precisely 14.3.2. Configure a Log Category in the CLI) Thanks, Mirek
Hi Nidhi, changes looks ok. I'd just move the chapter to somewhere else, for example to 20.6. Configuration. There is root logger: ... <root-logger> <level name="INFO"/> ... which sets default log level for all packages. Logger category specifies that a "package" (for example "org.hornetq") will be logged on different level (like TRACE, WARN,...) than is default. So logger category actually specifies exceptions to normal root-logger. Cheers, Mirek
Thanks Nidhi! Verified.