You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2012/07/12 13:16:43 UTC

svn commit: r1360630 - /lucene/dev/trunk/solr/example/README.txt

Author: markrmiller
Date: Thu Jul 12 11:16:42 2012
New Revision: 1360630

URL: http://svn.apache.org/viewvc?rev=1360630&view=rev
Log:
SOLR-2616: Include a section about logging in the README

Modified:
    lucene/dev/trunk/solr/example/README.txt

Modified: lucene/dev/trunk/solr/example/README.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/README.txt?rev=1360630&r1=1360629&r2=1360630&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/README.txt (original)
+++ lucene/dev/trunk/solr/example/README.txt Thu Jul 12 11:16:42 2012
@@ -43,6 +43,8 @@ UIMA, the clustering component, or other
 you will need to copy the required jars into solr/lib or update the paths to
 the jars in your solrconfig.xml.
 
+-SolrHome
+
 By default, start.jar starts Solr in Jetty using the default solr home
 directory of "./solr/" -- To run other example configurations, you can
 speciy the solr.solr.home system property when starting jetty...
@@ -50,3 +52,15 @@ speciy the solr.solr.home system propert
   java -Dsolr.solr.home=multicore -jar start.jar
   java -Dsolr.solr.home=example-DIH -jar start.jar
 
+-Logging
+
+By default, Solr will log to the console. This can be convenient when first
+getting started, but eventually you will want to log to a file. To enable
+logging, you can just pass a system property to Jetty on startup:
+
+  java -Djava.util.logging.config.file=etc/logging.properties -jar start.jar
+ 
+ This will use Java Util Logging to log to a file based on the config in
+ etc/logging.properties. Logs will be written in the logs directory. It is
+ also possible to setup log4j or other popular logging frameworks.
+