There are may ways to do this but I drop the following into the solr.war/web-inf/classes/logging.properties files:
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler ############################################################ # Handler specific properties. # Describes specific configuration info for Handlers. ############################################################ org.apache.juli.FileHandler.level = FINE org.apache.juli.FileHandler.directory = ${catalina.base}/logs/solr org.apache.juli.FileHandler.prefix = solr. java.util.logging.ConsoleHandler.level = FINE java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jérôme Etévé Sent: Friday, June 29, 2007 1:52 PM To: solr-user@lucene.apache.org Subject: Re: Log levels setting On 6/29/07, Chris Hostetter <[EMAIL PROTECTED]> wrote: > : Hi, > : is there a way to avoid going to the web interface to set up the solr > : log level ? > > he web intrface for tweaking the log level is actually a miss-feature in > my opinion ... it's a handy way to quickly crank the logging level up if > something weird is happening nad you want to see why, but the best way to > configre logging for Solr is via whatever configuration mechanism your > Servlet Container provides for managing JDK logging. Thanks for those informations ! I'm using tomcat 6, does somebody has a snippet of conf file to set up the log level for all org.apache.solr.* classes ? > Resin, Tomcat, and Jetty all support differnet configuration mechanisms > for controlling the logging level of individual loggers (which is one way > you can say i want INFO level from these classes, but only WARNINGs from > these other classes) ... in the absolute worst case scenerio if your > servlet container doesn't support any special logging configuration, you > can use the JDK system properties to specify a logging.properties file the > JDK should load on startup... > > http://java.sun.com/j2se/1.5.0/docs/guide/logging/overview.html > > > -Hoss -- Jerome Eteve. [EMAIL PROTECTED] http://jerome.eteve.free.fr/