# Set root logger level to DEBUG and its only appender to solrlog4j.
log4j.rootLogger=ALL, solrlog4j
log4j.appender.solrlog4j=com.cprassoc.solr.logging.SolrAppender
For Log4j 2.x:
Add this line to your "Loggers" element in Log4j2.xml:
<Logger name="com.cprassoc.solr.logging.SolrLogger" level="all"/>
Restart your web application, and you should see logging happening like so:
Logging Message: Sending request: POST /solr/solrlog4j/update/json?wt=json&commit=true HTTP/1.1 Add to queue...0 Processing Log... MESSAGE: Sending request: POST /solr/solrlog4j/update/json?wt=json&commit=true HTTP/1.1 Send Debug Message Send Message...>> "POST /solr/solrlog4j/update/json?wt=json&commit=true HTTP/1.1[\r][\n]" Logging Message: >> "POST /solr/solrlog4j/update/json?wt=json&commit=true HTTP/1.1[\r][\n]" Add to queue...0 MESSAGE: >> "POST /solr/solrlog4j/update/json?wt=json&commit=true HTTP/1.1[\r][\n]"`