users@jersey.java.net

[Jersey] Re: Questions about Jersey logger

From: Jakub Podlesak <jakub.podlesak_at_oracle.com>
Date: Mon, 07 Nov 2011 10:29:24 +0100

Hello Jordan,

please see in-lines...

On 6.11.2011 7:15, Jordan Blay wrote:
> I saw that Jersey provides a logging filter.
>
> 1. I see that it doesn't print the request body - is there a way to print it
> ?

There are two logging filters in Jersey, one for the server side, the
other one for the client side:

http://jersey.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/api/container/filter/LoggingFilter.html
http://jersey.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/api/client/filter/LoggingFilter.html

Both filters should include the entity body in the log. If it's not the
case, then it is a bug.
Could you please share some more information on your use case?

> 2. How can I configure it to use logback?

The names for the appropriate loggers are based on the above filter
class names. You need to configure
these loggers accordingly.

HTH,

~Jakub

> Thanks again for the amazing framework
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/Questions-about-Jersey-logger-tp6967058p6967058.html
> Sent from the Jersey mailing list archive at Nabble.com.
>