On 5/24/2013 1:32 PM, srinalluri wrote:
> logging.properties is at conf folder, not in lib. The following path I added
> in that file. But still solr.2013-05-24.log is blank.
> 5localhost.org.apache.juli.FileHandler.directory = /apps/solr1/solr4new/logs 

The logging.properties file will not be used.  Solr is set up (by the
slf4j jar choices) to use log4j.  You need a log4j.properties file.  The
easiest thing to do is to put it in the lib directory that you listed in
your reply, so it will be picked up in the classpath.  Just copy the
log4j.properties file from the example, and edit it to adjust the
logfile destination.

Alternatively, you can follow these instructions on the wiki, which will
restore the behavior from 4.2.1, and that will cause the logging to be
handled by Tomcat:

http://wiki.apache.org/solr/SolrLogging#Switching_from_Log4J_logging_back_to_Java-util_logging

Thanks,
Shawn

Reply via email to