Return-Path: Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@www.apache.org Received: (qmail 43543 invoked from network); 20 Oct 2004 09:18:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Oct 2004 09:18:47 -0000 Received: (qmail 54336 invoked by uid 500); 20 Oct 2004 09:18:44 -0000 Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@jakarta.apache.org Received: (qmail 54310 invoked by uid 500); 20 Oct 2004 09:18:44 -0000 Mailing-List: contact commons-httpclient-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Commons HttpClient Project" Reply-To: "Commons HttpClient Project" Delivered-To: mailing list commons-httpclient-dev@jakarta.apache.org Received: (qmail 54295 invoked by uid 99); 20 Oct 2004 09:18:44 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [213.56.31.48] (HELO smtp11.clb.oleane.net) (213.56.31.48) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 20 Oct 2004 02:18:43 -0700 Received: from jeanremi ([217.109.193.165]) by smtp11.clb.oleane.net with SMTP id i9K9Ie9m008812 for ; Wed, 20 Oct 2004 11:18:40 +0200 Reply-To: From: To: "Commons HttpClient Project" Subject: RE: can not turn off log under HttpClient Date: Wed, 20 Oct 2004 11:20:02 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <41762AA2.8080306@nose.ch> Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ok it's working : I write this on the top of my main class and the boring trace disepear : static{ System.setProperty("org.apache.commons.logging.Log","org.apache.commons.lo gging.impl.SimpleLog"); System.setProperty("org.apache.commons.logging.simplelog.showdatetime","tr ue"); System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.co mmons.httpclient","error"); } Thkx a lot -----Message d'origine----- De : Ortwin Gl�ck [mailto:ortwin.glueck@nose.ch] Envoy� : mercredi 20 octobre 2004 11:07 � : Commons HttpClient Project Objet : Re: can not turn off log under HttpClient jrlecq@easyvoyage.fr wrote: > I have nothing against log4J, but I can not add easyly a new packagge in my > application (someone else has to decide it...). > So I test with "System properties". But the log message is traced again : > 20 oct. 2004 10:55:17 org.apache.commons.httpclient.HttpMethodBase > processRedirectResponse > INFO: Redirect requested but followRedirects is disabled As the logging guide states: Note: The system properties must be set before a reference to any Commons Logging class is made. So set those properties as early as possible in your application or set them on the command line withe the -D option of the JVM. O. -- _________________________________________________________________ NOSE applied intelligence ag ortwin gl�ck [www] http://www.nose.ch software engineer hardturmstrasse 171 [pgp id] 0x81CF3416 8005 z�rich [office] +41-1-277 57 35 switzerland [fax] +41-1-277 57 12 --------------------------------------------------------------------- To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org