Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You may already know the CXF LoggingFeature. You used it like this:

...

languagexml
titleOld CXF LoggingFeature

...

old CXF LoggingFeature (org.apache.cxf.

...

feature.

...

It allowed to add logging to LoggingFeature). You added it to a JAXWS endpoint to enable logging for a CXF endpoint at compile time.

...

  • Auto logging for existing CXF endpoints
  • Uses slf4j MDC to log meta data separately
  • Adds meta data for Rest calls
  • Adds MD5 message id and exchange id for correlation
  • Simple interface for writing your own appenders
  • Karaf decanter support to log into elastic search

Manual Usage

Code Block
languagexml
titleCXF LoggingFeature
    <jaxws:endpoint ...>
      <jaxws:features>
       <bean class="org.apache.cxf.ext.logging.LoggingFeature"/>
      </jaxws:features>
    </jaxws:endpoint>

Auto logging for existing CXF endpoints in Apache Karaf

...