From httpclient-users-return-14170-archive-asf-public=cust-asf.ponee.io@hc.apache.org Wed Mar 28 09:49:42 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 590A8180652 for ; Wed, 28 Mar 2018 09:49:42 +0200 (CEST) Received: (qmail 20783 invoked by uid 500); 28 Mar 2018 07:49:41 -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 20772 invoked by uid 99); 28 Mar 2018 07:49:41 -0000 Received: from mail-relay.apache.org (HELO mailrelay2-lw-us.apache.org) (207.244.88.137) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2018 07:49:41 +0000 Received: from ok2c (unknown [217.24.190.46]) by mailrelay2-lw-us.apache.org (ASF Mail Server at mailrelay2-lw-us.apache.org) with ESMTPSA id DC6F4F93 for ; Wed, 28 Mar 2018 07:49:39 +0000 (UTC) Message-ID: <1522223377.9287.2.camel@apache.org> Subject: Re: logging using log4j with httpclient 5 beta ? From: Oleg Kalnichevski To: HttpClient User Discussion Date: Wed, 28 Mar 2018 09:49:37 +0200 In-Reply-To: <3F66B6A9-048E-4B81-8988-CE1F36CCB4FD@gmail.com> References: <3F66B6A9-048E-4B81-8988-CE1F36CCB4FD@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit On Tue, 2018-03-27 at 17:20 +0200, Rémy Amouroux wrote: > Hi All > > I’m trying to use httpclient 5 beta to discuss to a http2 server > through a proxy. > > For the moment, my log4j configuration includes > > log4j.logger.org.apache.hc.client5.http=DEBUG > log4j.logger.org.apache.hc.client5.http.wire=ERROR > > while it allows me to see part of the communication between client > and server, I don’t see the protocol negotiation. > Is there somewhere an explanation of the possible logging options for > httpclient 5 ? > > Regards > > remyA Hi Remy HC 5 documentation is virtually non-existent at this point. I would like to put some effort into it but I cannot commit to a particular time line. For now examples [1] and test code [2] is the best reference. There is a log4j configuration template with some common logging categories one can use as a starting point: https://github.com/apache/httpcomponents-client/blob/master/httpclient5 -testing/src/test/resources/log4j2-debug.xml.template Oleg [1] https://github.com/apache/httpcomponents-client/tree/master/httpcli ent5/src/examples/org/apache/hc/client5/http/examples [2] https://github.com/apache/httpcomponents-client/tree/master/httpcli ent5-testing --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org