On Jun 15, 2007, at 4:35 PM, Jack L wrote:
Is there a way to configure solr to log to a file?
...all you have to do is create a logging.properties file and call
this before starting up solr:
System.setProperty("java.util.logging.config.file", home+"/conf/
logging.properties");
(you can set this on the java commandline or in your servlet container)
Your logging.properties file can look like this:
---
handlers= java.util.logging.FileHandler
# Default global logging level.
.level= INFO
# default file output is in user's home directory.
java.util.logging.FileHandler.pattern = %h/Library/Application\
Support/Your Company/solr%u.log
java.util.logging.FileHandler.limit = 50000
java.util.logging.FileHandler.count = 1
java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter