You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2013/05/30 17:48:50 UTC
[Solr Wiki] Update of "SolrLogging" by JonathanRochkind
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 JonathanRochkind:
https://wiki.apache.org/solr/SolrLogging?action=diff&rev1=35&rev2=36
1. Copy the jars from {{{solr/example/lib/ext}}} into your container's main lib directory. For tomcat this is usually {{{tomcat/lib}}}. These jars will set up SLF4J and log4j.
1. Copy the logging config from {{{solr/example/resources/log4j.properties}}} into a location on the classpath. Usually you can use the same location as the jar files above. Edit the configuration file for your preferred log destination.
1. Optionally, if you did not place {{{log4j.properties}}} on the classpath, set java option {{{-Dlog4j.configuration=file:///path/to/log4j.properties}}}
+
+ If the system can not find the jars for logging, you may get an error which prevents Solr from deploying. For instance in Tomcat 6, it might look like this:
+
+ {{{
+ INFO: Deploying web application archive solr.war
+ May 29, 2013 3:59:40 PM org.apache.catalina.core.StandardContext start
+ SEVERE: Error filterStart
+ May 29, 2013 3:59:40 PM org.apache.catalina.core.StandardContext start
+ SEVERE: Context [/solr] startup failed due to previous errors
+ }}}
If the system cannot find your logging configuration, you may get errors like this:
{{{