Kraus, Ralf | pixelhouse GmbH wrote:
Hi,
is there a way to disable all logging output in SOLR ?
I mean the output text like :
"INFO: [core_de] webapp=/solr path=/update params={wt=json} status=0
QTime=3736"
greets -Ralf-
You probably do not want to totally disable logging in Solr. More
likely, your looking to make Solr less chatty by not logging the INFO
level. Solr is a bit chatty by default, mostly I think, because that can
be very useful and is often worth the likely very small performance hit
of all the extra logging. At the least though, I think you want to leave
Severe/Error logging on in most cases, and possibly WARN.
Its easy enough to change the logging levels though. Solr 1.3 uses
java.util.logging and Solr 1.4 uses SLF4J defaulting to java.util.logging.
So you can either change the system level properties file in your JDK
folder, or you can use a param at startup:
|-Djava.util.logging.config.file=/path/to/my/logging.properties
Then setup a props file. Here is an example from the wiki:
|
# Default global logging level:
.level= INFO
# Write to a file:
handlers= java.util.logging.FileHandler
# Write log messages in XML format:
java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
# Log to the current working directory, with log files named solrxxx.log
java.util.logging.FileHandler.pattern = ./solr%u.log
--
- Mark
http://www.lucidimagination.com