You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Brad O'Hearne <br...@neurofire.com> on 2004/02/02 18:08:13 UTC
More unwanted HttpClient logging
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
Re: More unwanted HttpClient logging
Posted by Sam Berlin <sb...@limepeer.com>.
You should examine the the Commons Logging documentation for more
precise answers, but your problem is most likely that the logging
package wasn't using SimpleLog and was instead using the JDK1.4 logger
(which has priority over SimpleLog). To force it to use the SimpleLog,
change NoOpLog to SimpleLog in the code below. Keep your other
setProperty calls in order to configure the SimpleLog.
Thanks,
Sam
On Monday, February 2, 2004, at 12:20 PM, Brad O'Hearne wrote:
> 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.NoOpLo
>> g)
>> 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.httpclie
>>> nt
>>> ",
>>> "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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org
RE: More unwanted HttpClient logging
Posted by Brad O'Hearne <br...@neurofire.com>.
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
Re: More unwanted HttpClient logging
Posted by Sam Berlin <sb...@limepeer.com>.
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