关闭apache-httpClient日志遇到的坑

log4j.logger.org=OFF
log4j.logger.httpclient=OFF

看org.apache.commons.httpclient.Wire源码才知道他没有遵循类名–httpclient.wire

  public static Wire HEADER_WIRE = new Wire(LogFactory.getLog("httpclient.wire.header"));

  public static Wire CONTENT_WIRE = new Wire(LogFactory.getLog("httpclient.wire.content"));
  private Log log;

  private Wire(Log log)
  {
    this.log = log;
  }

你可能感兴趣的:(工具,Ĵava,#,长软)