11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The Log Level Menu.<br />

Directories are shown with their current logging levels. The Log Level Menu floats over these. To set a log level<br />

for a particular directory, select it and click the appropriate log level button.<br />

Log levels settings are as follows:<br />

Level<br />

Result<br />

FINEST<br />

FINE<br />

CONFIG<br />

INFO<br />

WARN<br />

SEVERE<br />

OFF<br />

UNSET<br />

Reports everything.<br />

Reports everything but the least important messages.<br />

Reports configuration errors.<br />

Reports everything but normal status.<br />

Reports all warnings.<br />

Reports only the most severe warnings.<br />

Turns off logging.<br />

Removes the previous log setting.<br />

Multiple settings at one time are allowed.<br />

Permanent Logging Settings<br />

<strong>Solr</strong> uses Log4J version 1.2 for logging and is configured using server/resources/log4j.properties.<br />

Take a moment to inspect the contents of the log4j.properties file so that you are familiar with its<br />

structure. By default, <strong>Solr</strong> log messages will be written to server/logs/solr.log and to stdout (console),<br />

which is fine when you're just getting started with <strong>Solr</strong>.<br />

When you're ready to deploy <strong>Solr</strong> in production, we recommend making a few minor changes to the log settings.<br />

Edit log4j.properties and set the solr.log property to the location where you want <strong>Solr</strong> to write log files,<br />

such as /var/solr/logs. Note that if you installed <strong>Solr</strong> as a service using the instructions provided at Taking<br />

<strong>Solr</strong> to Production , then see /var/solr/log4j.properties instead of the default server/resources vers<br />

ion.<br />

solr.log=/var/solr/logs<br />

Alternatively, you can use the solr.solr.home system property to set the location of the log files, such as:<br />

solr.log=${solr.solr.home}/../logs<br />

During initialization, Log4J will resolve this to a path based on the solr.solr.home system property. While<br />

you’re customizing the log4j.properties file, we also recommend removing the CONSOLE appender from<br />

the rootLogger by changing the log4j.rootLogger property to:<br />

log4j.rootLogger=INFO, file<br />

Also, the default log rotation size threshold of 4MB is too small for production servers and should be increased to<br />

a larger value (such as 100MB or more).<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

540

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!