[Jersey] Re: How to log the data of a PUT/POST request

From: Pengfei Di <>
Date: Mon, 27 Feb 2012 11:11:05 +0100

Hi Colin,

Thanks for the reply.
In the log4j.xml, I have already set the log level to TRACE for the
LoggingFilter class.
In the log file, I can find all the header information of the requests,
but not the body part.
(It is strange, both the head and body information of the responses are
logged in the logger file.)


On 02/27/2012 10:46 AM, Colin Vipurs wrote:
> Have you checked the level your container is set to log at? By default
> the Jersey LoggingFilter logs at "info" level.
> On Mon, Feb 27, 2012 at 8:07 AM, Pengfei Di<> wrote:
>> Hi all,
>> I am using the default LoggingFilter to log every request/response on the
>> server side.
>> The problem is that I cannot find the data that comes with the PUT or POST
>> requests in the log file.
>> Is there any other logger that I can use to display the date of a PUT/POST
>> request?
>> Thanks a lot.
>> Regards
>> Pengfei