Return-Path: Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@www.apache.org Received: (qmail 22508 invoked from network); 3 Dec 2003 20:39:01 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Dec 2003 20:39:01 -0000 Received: (qmail 70767 invoked by uid 500); 3 Dec 2003 20:38:37 -0000 Delivered-To: apmail-jakarta-commons-httpclient-dev-archive@jakarta.apache.org Received: (qmail 70745 invoked by uid 500); 3 Dec 2003 20:38:37 -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 70732 invoked from network); 3 Dec 2003 20:38:37 -0000 Received: from unknown (HELO hotmail.com) (64.4.9.22) by daedalus.apache.org with SMTP; 3 Dec 2003 20:38:37 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 3 Dec 2003 12:38:42 -0800 Received: from 65.59.165.2 by lw9fd.law9.hotmail.msn.com with HTTP; Wed, 03 Dec 2003 20:38:42 GMT X-Originating-IP: [65.59.165.2] X-Originating-Email: [christopher_justin@hotmail.com] X-Sender: christopher_justin@hotmail.com From: "christopher justin" To: commons-httpclient-dev@jakarta.apache.org Bcc: Subject: Re: can't seem to supress logging Date: Wed, 03 Dec 2003 20:38:42 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 03 Dec 2003 20:38:42.0905 (UTC) FILETIME=[70DE8C90:01C3B9DD] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N wonderful, that seemed to work.. thanks alot Michael. I have one quick question that I will ask in this same email - In a multi-threaded environemnt, if each thread has its own HttpClient instance, this works just fine correct ? There is no statically shared object some where down the chain that would cause problems in that scenario right ? I do see the docs on multi-threaded environements, but I do not need to share the same instance of the HttpClient, i need each thread to have its own.. thanks again >From: Michael Becke >Reply-To: "Commons HttpClient Project" > >To: Commons HttpClient Project >Subject: Re: can't seem to supress logging >Date: Wed, 03 Dec 2003 15:02:39 -0500 > >>From looking at the commons logging docs > it seems that >this could also happen if you are using a 1.4 JRE. If so, you can either >configure logging using java.util.logging or set the following system >property to default commons logging to the simple log: > >System.setProperty("org.apache.commons.logging.Log", >"org.apache.commons.logging.impl.SimpleLog"); > >Mike > >christopher justin wrote: > >>really strange.. the only jars related to HttpClient that are in my path >>are >>commons-httpclient-2.0-rc1.jar and commons-logging.jar . And I have now >>I now made sure I set >>System.setProperty("org.apache.commons.logging.simplelog.defaultlog","fatal"); >> in my main method before any classes are even instantiated. It still >>has not supressed warnings, info, etc. >> >> >>>From: Michael Becke >>>Reply-To: "Commons HttpClient Project" >>> >>>To: Commons HttpClient Project >>> >>>Subject: Re: can't seem to supress logging >>>Date: Wed, 03 Dec 2003 14:38:50 -0500 >>> >>>Hi Chris, >>> >>>There are two possibilities that I can think of: >>> >>>1) The Log4j jar is on your classpath. When Log4j is detected it is used >>>as the default logger and it controls the default log levels. >>> >>>2) org.apache.commons.logging.simplelog.defaultlog is not being set soon >>>enough. This property must be set before commons-logging is used. It >>>should be set prior to any calls to LogFactory.getLog(). >>> >>>Mike >>> >>>christopher justin wrote: >>> >>>>hi all, >>>>this has been bugging me for over 24 hours now, so i figured i would ask >>>>your help on this probably really simple answer. I have set the >>>>following: >>>> >>>>System.setProperty("org.apache.commons.logging.simplelog.defaultlog","fatal"); >>>> >>>> >>>> >>>>But i still get WARNING and INFO message - I cannot seem to figure out >>>>how to reduce the logging to FATAL or error. The docs at >>>>http://jakarta.apache.org/commons/httpclient/logging.html speak as if >>>>its as easy as setting the appropriate system property, so maybe i am >>>>setting the wrong property, but the one above says it is the how to set >>>>the default log level for all classes. The class I set this in is the >>>>one who is wriitng warning, info and error messages. >>>> >>>>Can some one please tell me how to set the logging level appropriatly? >>>> >>>>Thanks in advance. >>>> >>>>_________________________________________________________________ >>>>Browse styles for all ages, from the latest looks to cozy weekend wear >>>>at MSN Shopping. And check out the beauty products! >>>>http://shopping.msn.com >>>> >>>> >>>>--------------------------------------------------------------------- >>>>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 >>> >> >>_________________________________________________________________ >>Take advantage of our best MSN Dial-up offer of the year � six months >>@$9.95/month. Sign up now! http://join.msn.com/?page=dept/dialup >> >> >>--------------------------------------------------------------------- >>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 > _________________________________________________________________ Get holiday tips for festive fun. http://special.msn.com/network/happyholidays.armx --------------------------------------------------------------------- To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org