Hi,

Check out <core>/conf/solrcore.properties 
http://wiki.apache.org/solr/SolrConfigXml#System_property_substitution
You could put in your core name there. But I seem to recall that the variable 
${core) may be pre-filled for you, or perhaps that's just in the scope of 
solr.xml?

Or perhaps you could put a unique log4j.properties file in <core>/lib/ and 
refer to it as a <lib> tag in solrconfig, but I can't guarantee that it will be 
visible to log4j from there?

Let us know what worked.

--
Jan Høydahl, search solution architect
Cominvent AS - www.cominvent.com
Solr Training - www.solrtraining.com

5. mars 2013 kl. 17:36 skrev Russell Taylor 
<russell.tay...@interactivedata.com>:

> I've changed my solr-4.1.0.war file to use log4j, now every instance of solr 
> I have on tomcat produces logs to /logs/solr.log
> 
> In "tomcat/solr_app1/WEB-INF/classes/log4j.properties" I have a variable to 
> set the path for the log file
> 
> log4j.appender.FILE.File=${solr.logs.home}/solr.log which is set in 
> CATALINA_OPTS="-Dsolr.logs.home=/logs/"
> 
> I'd like to have a separate file for each webapp like so 
> "log4j.appender.FILE.File=${solr.logs.home}/${solr_webapp}.log".
> 
> My Question is:
> How do I pass this variable into each individual solr webapp is it via the 
> solr context files?
> 
> Thanks
> 
> Russ.
> 
> 
> *******************************************************
> This message (including any files transmitted with it) may contain 
> confidential and/or proprietary information, is the property of Interactive 
> Data Corporation and/or its subsidiaries, and is directed only to the 
> addressee(s). If you are not the designated recipient or have reason to 
> believe you received this message in error, please delete this message from 
> your system and notify the sender immediately. An unintended recipient's 
> disclosure, copying, distribution, or use of this message or any attachments 
> is prohibited and may be unlawful. 
> *******************************************************

Reply via email to