Questo contenuto non è disponibile nella lingua selezionata.
20.9. JMS Client Logging
The qpid-java client logging is handled using the Simple Logging Facade for Java (SLF4J). SLF4J is a facade that delegates to other logging systems like log4j or JDK 1.4 logging.
When using the log4j binding, set the log level for
org.apache.qpid
. Otherwise log4j will default to DEBUG
which will degrade performance considerably due to excessive logging. The recommended logging level for production is WARN
.
The following example shows the logging properties used to configure client logging for SLF4J using the log4j binding. These properties can be placed in a
log4j.properties
file and placed in the CLASSPATH
, or they can be set explicitly using the -Dlog4j.configuration
property.
Example 20.3. log4j Logging Properties