How do I change the logging?
We use commons-logging to log information in the broker client and the broker itself so you can fully configure the logging levels desired, whether to log to files or the console, as well as the underlying logging implementation (Log4J, Java SE logger, etc.) you wish to use. For Log4J, full instructions are in its manual, but in a nutshell:
log4j.jarto your classpath
log4j.propertiesfile specifying desired logging configuration (The Camel distribution has example
log4j.propertiesfiles you can use — see for example in the /examples/camel-example-as2/src/main/resources folder.)
log4j.propertiesfile in the folder where the compiled
.classfiles are located (typically the
classesfolder) — this will place the properties file on the classpath, where it needs to be at runtime.