lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Update of "SolrJetty" by AndreyNiakhaichyk
Date Tue, 13 Dec 2011 10:31:55 GMT
Dear Wiki user,

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

The "SolrJetty" page has been changed by AndreyNiakhaichyk:

Improve logging part

   * How to specify `plusConfig` inside context configuration.
   * How to specify solr.home for particular context inside context configuration.
+ == Logging ==
+ By default Solr producing huge log output. Solr uses JDK log functionality. You can control
the amount of logging output in Solr by using the Admin Web interface. Select the LOGGING
link. Note that this page only lets you change settings in the running system and is not saved
for the next run.
+ To setup default Log level we have to create file with logging properties
+ {{{
+ org.apache.solr.level = WARNING
+ handlers = java.util.logging.FileHandler
+ java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
+ java.util.logging.FileHandler.pattern = /var/log/jetty6/solr-%u.log
+ }}}
+ and add it into Jetty java options (/etc/default/jetty):
+ {{{
+ JAVA_OPTIONS="-Djava.util.logging.config.file=etc/ $JAVA_OPTIONS"
+ }}}
+ and restart jetty.
+ NOTE!!! This file contains not only new log level but new file for logs.
It has been defined because JDK may stop log to standard output after defining -Djava.util.logging.config.file
+ === log4j ===
+ You can also use [[|log4j
recipe]] to handle logs. But it probably add new log handler instead replacing current. After
reconfiguration please recheck result carefully.
+ === logrotating ===
  == Other information ==
- === Logging ===
- To switch Solr log level from INFO to WARNING you have to [[|create file and reconfigure JVM]].
- For information about controlling JDK Logging (aka: java.util logging) in Jetty please consult
the Jetty docs...
  === Configuring Solr Home with JNDI (Jetty < 6.0) (Deprecated) ===
  Jetty Plus provides an addEnvEntry for configuring the JNDI property needed to specify your
Solr Home directory.

View raw message