Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BB52610D9D for ; Thu, 13 Jun 2013 12:52:34 +0000 (UTC) Received: (qmail 20096 invoked by uid 500); 13 Jun 2013 12:52:33 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 20071 invoked by uid 500); 13 Jun 2013 12:52:33 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 20062 invoked by uid 99); 13 Jun 2013 12:52:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 12:52:31 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (athena.apache.org: local policy) Received: from [217.150.250.48] (HELO kalnich.nine.ch) (217.150.250.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Jun 2013 12:52:25 +0000 Received: from [192.168.42.181] (unknown [213.55.184.154]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by kalnich.nine.ch (Postfix) with ESMTPSA id C5747B80145 for ; Thu, 13 Jun 2013 14:51:43 +0200 (CEST) Message-ID: <1371127903.6892.6.camel@ubuntu> Subject: Re: Logging of httpclient.wire.content depending on the target of the connection From: Oleg Kalnichevski To: HttpClient User Discussion Date: Thu, 13 Jun 2013 14:51:43 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.2-0ubuntu1~raring1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, 2013-06-13 at 07:26 -0400, JOSE L MARTINEZ-AVIAL wrote: > Hi, > I have an web application that uses Axis2 1.6.2 to connect to diferent > webservices. The underlying protocol is HTTP, so it uses httpcore-4.0 to > connect to the server. My problem is that for auditory reasons I need to > log the requests and responses received from a particular webservice, but > the other webservices should not be logged. I know I can setup > httpclient.wire.content to DEBUG in order to log the content of the > request/responses, but how I can do that dynamically depending on the > server the request is going to? > > Thanks > > JL You'll have to develop a custom connection implementation and / or a custom connection manager. Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org