From 4770c709c9a1a28ac2d623a7a476af15f31ecc78 Mon Sep 17 00:00:00 2001 From: Keith Wall Date: Fri, 16 May 2014 10:23:28 +0000 Subject: QPID-5554: [Java Broker Documentation] Add logging overview and appendix describing queue alerts git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1595148 13f79535-47bb-0310-9956-ffa450edef68 --- .../java-broker/Java-Broker-Runtime-Log-Files.xml | 53 +++++++++++++++++++++- 1 file changed, 51 insertions(+), 2 deletions(-) (limited to 'qpid/doc/book/src/java-broker/Java-Broker-Runtime-Log-Files.xml') diff --git a/qpid/doc/book/src/java-broker/Java-Broker-Runtime-Log-Files.xml b/qpid/doc/book/src/java-broker/Java-Broker-Runtime-Log-Files.xml index 84ee4db6d3..dc5a5b510d 100644 --- a/qpid/doc/book/src/java-broker/Java-Broker-Runtime-Log-Files.xml +++ b/qpid/doc/book/src/java-broker/Java-Broker-Runtime-Log-Files.xml @@ -21,6 +21,55 @@ -->
-Log Files - + Log Files + The Broker uses the Apache Log4J + Logging Framework for all logging activity. + In the Broker's shipped configuration, all logging is directed to log file ${QPID_WORK}/log/qpid.log. The log file is not rotated and will be overwritten + when the Broker restarts. Logging levels are configured in such a way that the log will comprise + of: + + + Opertional Log Events. These report key events in the lifecycle of objects (Broker + start-up, Queue creation, Queue deletion etc) within the Broker. See for details of the formation of these + messages. + + + Queue Alert Events. These report when the queue thresholds have been breached. See for details. + + + Any Error and Warning conditions. + + + Logging can be reconfigured either by changing the logging configuration file ${QPID_HOME}/etc/log4j.xml or at runtime using the Logging Management MBean, + see for + details. +
+ Enabling Debug + It can be helpful to enable debug within the Broker in order to understand a problem more + clearly. If this is required, debug can be enabled at runtime (without restarting the Broker) + using the Logging Management MBean. The change can also be made by changing the log configuration + file and restarting the Broker. Whichever mechanism is chosen, change the appender assoicated + with org.apache.qpid from WARN to + DEBUG. + + Changing the log4j.xml configuration file to enable debug + + + +...]]> + + + Running a production system at DEBUG level can have performance + implications by slowing the Broker down. It can also generate large log files. Take care to + revert the logging level back to WARN after the analysis is performed. + +
-- cgit v1.2.1