lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolrLogging" by Bill Bell
Date Sun, 01 Apr 2012 03:28:08 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "SolrLogging" page has been changed by Bill Bell:
http://wiki.apache.org/solr/SolrLogging?action=diff&rev1=7&rev2=8

  
  Here are some additional details for implementing logback (http://logback.qos.ch/). As you
may know, Logback is from the same author as Log4j. It has several enhancements including
Filters and Custom Appenders.
  
- 1. Get Solr 3.5 and extract the tar/zip file on your system.
+ 1. Get Solr 3.5 http://www.apache.org/dyn/closer.cgi/lucene/solr/3.5.0 and extract the tar/zip
file on your system.
  
- tar xzvf solr35.tar.gz
+ # cd {orig}
+ # tar xzvf apache-solr-3.5.0.tgz
  
  2. Copy the solr.war file to a new location
  
- mkdir -p /tmp/solr
+ # mkdir -p /tmp/solr
- cd ./example/webapps
+ # cd ./example/webapps
- cp solr.war /tmp/solr
+ # cp solr.war /tmp/solr
- cd /tmp/solr
+ # cd /tmp/solr
- jar xvf solr.war
+ # jar xvf solr.war
- rm -f solr.war
+ # rm -f solr.war
  
  3. Remove the slf4j-jdk14-1.6.1.jar file
  
- cd /tmp/solr
+ # cd /tmp/solr
- rm -f ./WEB-INF/lib/slf4j-jdk14-1.6.1.jar
+ # rm -f ./WEB-INF/lib/slf4j-jdk14-1.6.1.jar
  
  4. Copy logback classic files 
  
  Get the file: http://logback.qos.ch/dist/logback-1.0.1.tar.gz
  
- tar xzvf logback-1.0.1.tar.gz
+ # tar xzvf logback-1.0.1.tar.gz
- cd logback-1.0.1
+ # cd logback-1.0.1
- cp logback-classic-1.0.1.jar /tmp/solr/WEB-INF/lib
+ # cp logback-classic-1.0.1.jar /tmp/solr/WEB-INF/lib
- cp logback-core-1.0.1.jar /tmp/solr/WEB-INF/lib
+ # cp logback-core-1.0.1.jar /tmp/solr/WEB-INF/lib
  
  5. Rebuild the war
  
- cd /tmp/solr
+ # cd /tmp/solr
- jar cvf solr.war *
+ # jar cvf solr.war *
  
  6. Copy the war back to your example/webapps directory
  
- cp solr.war {orig}/apache-solr-3.5.0/example/webapps
+ # cp solr.war {orig}/apache-solr-3.5.0/example/webapps
  
  7. Create resources/logback.xml file
  
- cd {orig}/apache-solr-3.5.0/example
+ # cd {orig}/apache-solr-3.5.0/example
- mkdir resources
+ # mkdir resources
  
  copy logback.xml into this directory.
  

Mime
View raw message