The request headers, request entity, response headers and response entity will be logged. By default logging will be output to System.out.
When an application is deployed as a Servlet or Filter this Jersey filter can be registered using the following initialization parameters:
<init-param> <param-name>com.sun.jersey.spi.container.ContainerRequestFilters</param-name> <param-value>com.sun.jersey.api.container.filter.LoggingFilter</param-value> </init-param> <init-param> <param-name>com.sun.jersey.spi.container.ContainerResponseFilters</param-name> <param-value>com.sun.jersey.api.container.filter.LoggingFilter</param-value> </init-param>
The logging of entities may be disabled by setting the feature {@link #FEATURE_LOGGING_DISABLE_ENTITY} to true. When an application isdeployed as a Servlet or Filter this feature can be registered using the following initialization parameter:
@author Paul.Sandoz@Sun.Com @see com.sun.jersey.api.container.filter<init-param> <param-name>com.sun.jersey.config.feature.logging.DisableEntitylogging</param-name> <param-value>true</param-value> </init-param>
|
|