I just copy the line from camel cxf wiki page[1] How to make the camel-cxf component use log4j instead of java.util.logging
CXF's default logger is java.util.logging. If you want to change it to log4j, proceed as follows. Create a file, in the classpath, named META-INF/cxf/org.apache.cxf.logger. This file should contain the fully-qualified name of the class, org.apache.cxf.common.logging.Log4jLogger, with no comments, on a single line.
[1]http://camel.apache.org/cxf.html Willem Charles Moulliard wrote:
Hi, It is possible to use the class LoggingFeature of CXF inside the Camel CXF Endpoint to log the IN/OUT traffic coming from/to CXF using the following bean declaration in the camel cxf:bean defintion : <bean class="org.apache.cxf.feature.LoggingFeature"/> Unfortunately, this class send the IN/OUT information to the System.out console. Does anybody knows a workaround in camel spring DSL to send this information to a log file using log4j ? Kinds regards, Charles Moulliard Senior Enterprise Architect Apache Camel Committer ***************************** blog : http://cmoulliard.blogspot.com twitter : http://twitter.com/cmoulliard Linkedlin : http://www.linkedin.com/in/charlesmoulliard Apache Camel Group : http://www.linkedin.com/groups?home=&gid=2447439&trk=anet_ug_hm