Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7807

org.apache.cxf.ext.logging.LoggingFeature.setPrettyLogging(true) not working

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 3.2.5
    • None
    • Bus
    • Java 8

      Apache CXF 3.2.5

    • Unknown

    Description

      The setPrettyLogging(true) does not appear to be working with the class org.apache.cxf.ext.logging.LoggingFeature

      It does however still work with the deprecated class org.apache.cxf.feature.LoggingFeature.

      Here is my code snippet -->

          @Bean
          public Bus bus() {
              bus.setFeatures(Collections.singletonList(loggingFeature()));
              return bus;
      {{    }}}

          private LoggingFeature loggingFeature() {
              LoggingFeature loggingFeature = new LoggingFeature();
              loggingFeature.setLimit(-1);
              loggingFeature.setPrettyLogging(true);
              return loggingFeature;
          }}}{{    @Bean

      We have the following in our pom.xml file -->

              <dependency>
                  <groupId>org.apache.cxf</groupId>
                  <artifactId>cxf-rt-features-logging</artifactId>
                  <version>3.2.5</version>
              </dependency>

      If I use the deprecated LoggingFeature class, my outgoing/incoming SOAP messages are pretty-printed whereas if I swap-in the new LoggingFeature class, those messages are not pretty-printed.My team lead & I have tried to figure it out and could not. We are not newbies at this sort of thing.

      Can anyone tell us what we are doing wrong?

      Thanks,

      James

      Attachments

        Activity

          People

            Unassigned Unassigned
            james.main James Main
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: