I have an older version of Solr (1.2) running on Tomcat 5.5.25. All the output for Solr is going to the catalina.out logfile, which gets rather large and has to be deleted about once a month, requiring me to stop Tomcat and bring it back up each time. I'd like to make a new logfile for Solr that rolls over daily, so that it is easy to clean up the records with a cron job.
I added swallowOutput="true" to the solr context file. I have altered the logging.properties file for Tomcat: handlers = 1catalina.org.apache.juli.FileHandler, ..... , 6solr.org.apache.juli.FileHandler 6solr.org.apache.juli.FileHandler.level = FINE 6solr.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 6solr.org.apache.juli.FileHandler.prefix = solr. org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/solr].level = ALL org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/solr].handlers = 6solr.org.apache.juli.FileHandler When I restart Tomcat, some entries appear in the new Solr log (saying the listener & filter have been started), but the normal output from Solr still goes to the catalina.out. >From what I've read on the Tomcat documentation, the above entries should do the trick. Does anyone have an idea of something else I can try to solve this problem? Updating any of the software is not an option. I do have a similar question to this one on the Solr mailing list, but they were saying to use Tomcat to control the logging. Any help would be greatly appreciated! Thanks! -- Chris --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org