Hi,

FIrst of all, to setup loggin using Log4J (which is really better than JULI), 
copy all the jars from Jetty's lib/ext over to tomcat's lib folder, see 
instructions here: http://wiki.apache.org/solr/SolrLogging#Solr_4.3_and_above. 
You can place your log4j.properties in tomcat/lib as well so it will be read 
automatically.

Now when you start your Tomcat, you will find a file tomcat/logs/solr.log in 
nicer format than before, with one log entry per line instead of two, and 
automatic log file rotation and cleaning.

However, if you like to switch to Java Util logging, do the following:

1. Download slf4j version 1.6.6 (since that's what we use). 
http://www.slf4j.org/dist/slf4j-1.6.6.zip
2. Unpack, and pull out the file slf4j-jdk14-1.6.6.jar
3. Remove tomcat/lib/slf4j-log4j12-1.6.6.jar and copy slf4j-jdk14-1.6.6.jar to 
tomcat/lib instead
4. Use your old logging.properties (either place it on classpath or point to it 
with startup opt)

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

9. mai 2013 kl. 20:41 skrev richardg <richa...@dvdempire.com>:

> Thanks for responding.  My issue is I've never changed anything w/ logging, I
> have always used the built in Juli.  I've never messed w/ any jar files,
> just had edit the logging.properties file.  I don't know where I would get
> the jars for juli or where to put them, if that is what is needed.  I had
> read what you posted before I just can't make any sense of it.
> 
> Thanks
> 
> 
> 
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/4-3-logging-setup-tp4061875p4061901.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to