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:[EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]