I am using cxf logging feature in a osgi bundle within karaf 3.0.3. (cxf version is 3.0.3)
In my blueprint I defined cxf logging feature
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:cxf="http://cxf.apache.org/blueprint/core"
xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws">
<cxf:bus>
<cxf:features>
<cxf:logging />
</cxf:features>
</cxf:bus>
...
In my log4j configuration I defined a logger and appender for rootLogger and for cxf messages. That works fine:
log4j.rootLogger=INFO, out
log4j.logger.org.apache.cxf.services=INFO, cxf_ws_messages_all
The problem is, that cxf logs all messages into my "cxf_ws_messages_all" appender and in "out" appender. Does anyone know how to configure cxf logging not to use rootLogger?
A second problem occurring if using xcf logging feature is that in the "out" appender also gets debug logs. The only way I was able to fix this was setting the Threshold of "out" appender to INFO:
log4j.appender.out.Threshold=INFO
Thanks for any help.