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





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to