users@jersey.java.net

Re: [Jersey] log HTTP exchanges

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 12 Nov 2009 13:45:40 +0100

On Nov 12, 2009, at 1:30 PM, Ari Heino wrote:

>
>
>
> Paul Sandoz wrote:
>>
>>
>> Hmm... what version of Jersey are you using?
>>
>> The LoggingFilter was modified to use JDK logging in 1.1.2-ea before
>> that it was output to System.out.
>>
>> Paul.
>>
>>
>
> Jersey 1.1.4

Then i cannot explain what is going on :-(

public class LoggingFilter implements ContainerRequestFilter,
ContainerResponseFilter {
     /**
      * If true the request and response entities (if present) will
not be logged.
      * If false the request and response entities will be logged.
      * <p>
      * The default value is false.
      */
     public static final String FEATURE_LOGGING_DISABLE_ENTITY
             =
"com.sun.jersey.config.feature.logging.DisableEntitylogging";

     private static final Logger LOGGER =
Logger.getLogger(LoggingFilter.class.getName());


The Logger instance is obtained as above.

Paul.