Reputation: 2399
I would be very thankfull, if someone can tell me, how to enable "wire logging" (printing all the XML that is sent and received from the solr-java-client to/from the solr-server).
The Client i use: http://wiki.apache.org/solr/SolJava I use log4j!!
Both did NOT work in log4j config:
<logger name="org.apache.solr" additivity="false">
<level value="debug" />
<appender-ref ref="RollingFileAppender" />
<appender-ref ref="ConsoleAppender" />
</logger>
<logger name="org.apache.commons.httpclient" additivity="false">
<level value="debug" />
<appender-ref ref="RollingFileAppender" />
<appender-ref ref="ConsoleAppender" />
</logger>
Solr internally uses another logging framework slf??? ,maybe this is the reason, but I do not know where to start here how to solve the problem.
Thanks!!! Jens
Upvotes: 0
Views: 1512
Reputation: 3096
Solr makes use of the JDK Logging since Version 1.4.
Maybe this tutorial will help you figure out how to configure your Tomcat for that.
Or replace the slfj api within the solr.war file with the one for log4j as mentioned in the Solr documentation.
If you want to have more information within the client look at the SolrQuery javadoc.
Hope this helps you a step forward.
Upvotes: 2