log4j:WARN No appenders could be found for logger (httpclient.wire.header).

log4j:WARN No appenders could be found for logger (httpclient.wire.header).

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

--------------------------------------------------------------------------------------------------------------------

出现在solrj 查询之后,

--------------------------

解决办法

log4j.properties 中添加

log4j.logger.httpclient.wire.header=ERROR

log4j.logger.httpclient.wire.content=ERROR

-------------------------------------------------------------------------------------

参考地址   http://stackoverflow.com/questions/4915414/disable-httpclient-logging

相关推荐