we tried setting a custom sensitive logging using blueprint and following documentation https://cxf.apache.org/docs/message-logging.html.
This feature doesn't work when adding our bean/service in <jaxrs:features> or <jaxws:features> .
We have to declare the bean/service on <cxf:bus> level:
It seems without explicit <cxf:bus> declaration, bus will have cxf:logging feature by default, and therefore will be used instead of custom one: https://github.com/apache/cxf/blob/cxf-3.4.7/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/JAXRSServerFactoryBean.java#L192-L193
See screenshot of stack:
- JAXRSServerFactoryBean has our custom logging feature >> not used
- bus has standard logging feature >> used