Since we're on a major migration process of this website, some component documents here are out of sync right now. In the meantime you may want to look at the asciidoc in the repository: https://github.com/apache/camel/blob/master/README.md https://github.com/apache/camel/blob/master/components/readme.adoc
How do I use Log4j?Camel uses sfl4j which allows you to configure logging via, among others:
The quick way to enable Log4j is to add log4j to your classpath or maven pom.xml. For example the following in your pom.xml should do the trick
Then to configure log4j you need to add a log4j.properties or log4j.xml to your classpath (so they go in a directory which is on your classpath).
Here's an example log4j.properties file