hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brad O'Hearne" <br...@neurofire.com>
Subject RE: More unwanted HttpClient logging
Date Mon, 02 Feb 2004 17:20:10 GMT
Great, that worked beautifully! Thanks! Now, to turn logging back on, is
there a similar setProperty() value that works counter to
"org.apache.commons.logging.impl.NoOpLog"?

BradO

> -----Original Message-----
> From: Sam Berlin [mailto:sberlin@limepeer.com]
> Sent: Monday, February 02, 2004 12:11 PM
> To: Commons HttpClient Project
> Subject: Re: More unwanted HttpClient logging
>
>
> Use:
>   System.setProperty("org.apache.commons.logging.Log",
>   				"org.apache.commons.logging.impl.NoOpLog");
>
> Technically it's better to set the property before starting Java (using
> -
> Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog)
>   when running java, but I believe if the System.setProperty is one of
> the first things done, it should still work.
>
> Thanks,
>   Sam
>
>
> On Monday, February 2, 2004, at 12:08  PM, Brad O'Hearne wrote:
>
> > Got another one of these unwanted log messages spewing to System.out:
> >
> > Feb 2, 2004 11:32:48 AM org.apache.commons.httpclient.HttpMethodBase
> > processRequest
> > INFO: Recoverable exception caught when processing request
> >
> > Except this time, prior to this executing, I set the log level at WARN.
> > Anyone know why I am getting INFO messages when the log level is set to
> > WARN?  Here's the code I am using to set the log level:
> >
> > System.setProperty(
> > "org.apache.commons.logging.simplelog.log.org.apache.commons.httpclient
> > ",
> > "WARN");
> >
> > I'm trying to eliminate these log messages.  Thanks in advance for your
> > help!
> >
> > Sincerely,
> >
> > BradO
> >
> >
> > ---------------------------------------------------------------------
> > 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
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message