Friday 10 October 2014

How to get Solr to log to a log file

This post is just a summary of somebody's post in here: http://skybert.wordpress.com/2009/07/22/how-to-get-solr-to-log-to-a-log-file/


1. Edit $TOMCAT_HOME/conf/logging.properties

# added 6localhost.org.apache.juli.FileHandler to the list of handlers

6localhost.org.apache.juli.FileHandler.level = FINE
6localhost.org.apache.juli.FileHandler.directory = /var/log/tomcat6/solr
6localhost.org.apache.juli.FileHandler.prefix = solr.

org.apache.solr.level=INFO
org.apache.solr.handlers=6localhost.org.apache.juli.FileHandler



2. make sure u put the handler in the list of handlers in the line,

handlers = 1catalina.org.apache.juli.FileHandler, ……


3. also make sure ur log output directory is right..
6localhost.org.apache.juli.FileHandler.directory = /var/log/tomcat6/solr

No comments:

Post a Comment