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/07/02 19:28:58 UTC
[Solr Wiki] Update of "SolrLogging" by ShawnHeisey
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 ShawnHeisey:
https://wiki.apache.org/solr/SolrLogging?action=diff&rev1=36&rev2=37
Comment:
added tomcat lib lcoations for debian/ubuntu.
=== Using the example logging setup in containers other than Jetty ===
To get the same logging setup in another container (Tomcat for example) as with the example Jetty server, you need to do the following
- 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 jars from {{{solr/example/lib/ext}}} into your container's main lib directory. These jars will set up SLF4J and log4j.
+ a. Exactly where this lib directory is highly variable. For a Debian or Ubuntu server using the Tomcat package available from the OS vendor, this is likely to be {{{/usr/share/tomcat6/lib}}} or {{{/usr/share/tomcat7/lib}}}.
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}}}