org.apache.cxf.feature

## Class LoggingFeature

- java.lang.Object
- - javax.xml.ws.WebServiceFeature
  - - org.apache.cxf.feature.AbstractFeature
    - - org.apache.cxf.feature.LoggingFeature

- All Implemented Interfaces:
    Feature

      public class LoggingFeature
      extends AbstractFeature

  This class is used to control message-on-the-wire logging. By attaching this feature to an endpoint, you can specify logging. If this feature is present, an endpoint will log input and output of ordinary and log messages.

- - ### Field Summary

    - ### Fields inherited from class javax.xml.ws.WebServiceFeature

      `enabled`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LoggingFeature()`
    `LoggingFeature(int lim)`
    `LoggingFeature(Logging annotation)`
    `LoggingFeature(String in, String out)`
    `LoggingFeature(String in, String out, int lim)`
    `LoggingFeature(String in, String out, int lim, boolean p)`
    `LoggingFeature(String in, String out, int lim, boolean p, boolean showBinary)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getLimit()` Retrieve the value set with `setLimit(int)`.
    `protected void` | `initializeProvider(InterceptorProvider provider, Bus bus)`
    `boolean` | `isPrettyLogging()`
    `void` | `setLimit(int lim)` This function has no effect at this time.
    `void` | `setPrettyLogging(boolean prettyLogging)` Turn pretty logging of XML content on/off

    - ### Methods inherited from class org.apache.cxf.feature.AbstractFeature

      `getActive, getID, initialize, initialize, initialize, initialize`

    - ### Methods inherited from class javax.xml.ws.WebServiceFeature

      `isEnabled`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### LoggingFeature

          public LoggingFeature()

    - #### LoggingFeature

          public LoggingFeature(int lim)

    - #### LoggingFeature

          public LoggingFeature(String in,
                        String out)

    - #### LoggingFeature

          public LoggingFeature(String in,
                        String out,
                        int lim)

    - #### LoggingFeature

          public LoggingFeature(String in,
                        String out,
                        int lim,
                        boolean p)

    - #### LoggingFeature

          public LoggingFeature(String in,
                        String out,
                        int lim,
                        boolean p,
                        boolean showBinary)

    - #### LoggingFeature

          public LoggingFeature(Logging annotation)

  - ### Method Detail

    - #### initializeProvider

          protected void initializeProvider(InterceptorProvider provider,
                                Bus bus)

      Overrides:
        `initializeProvider` in class `AbstractFeature`

    - #### setLimit

          public void setLimit(int lim)

      This function has no effect at this time.
      Parameters:
        `lim` -

    - #### getLimit

          public int getLimit()

      Retrieve the value set with `setLimit(int)`.

    - #### isPrettyLogging

          public boolean isPrettyLogging()

    - #### setPrettyLogging

          public void setPrettyLogging(boolean prettyLogging)

      Turn pretty logging of XML content on/off
      Parameters:
        `prettyLogging` -

Apache CXF