opensubscriber
   Find in this group all groups
 
Unknown more information…

c : commons-httpclient-dev@jakarta.apache.org 20 October 2004 • 4:30PM -0400

can not turn off log under HttpClient
by jrlecq

REPLY TO AUTHOR
 
REPLY TO GROUP




Hello,

When I read trace in my catalina.out, I find this information many many time
:
> 20 oct. 2004 10:21:27 org.apache.commons.httpclient.HttpMethodBase
processRedirectResponse
> INFO: Redirect requested but followRedirects is disabled

I read carefully the HttpClient user guide about logging and Apache common
logging guide, but I don't find how turn off thoses traces.

I tried this but it s don' t work :
MyClass{
/** logging **/
private static Log log1 =
LogFactory.getLog("org.apache.commons.logging.Log");
private static Log log2 =
LogFactory.getLog("org.apache.commons.logging.impl.SimpleLog");
private static Log log3 =
LogFactory.getLog("org.apache.commons.logging.simplelog.log.httpclient.wire"
);
private static Log log4 =
LogFactory.getLog("org.apache.commons.logging.simplelog.log.org.apache.commo
ns.httpclient");
private static Log log5 =
LogFactory.getLog("org.apache.commons.logging.simplelog.defaultlog");
...

  MyClassConstructor(){
    log1.isFatalEnabled();
    log2.isFatalEnabled();
    log3.isFatalEnabled();
    log4.isFatalEnabled();
    log5.isFatalEnabled();
    ...
  }
}

If someone have an idea ...

Thx



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

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.