Configuring the Guidewire Solr Extension logging level
The Guidewire Solr Extension produces log entries to convey information about its operation. These entries appear in the application log file. The number of log entries that the free-text search service produces in embedded mode depends on the Guidewire Solr Extension logging level.
You can set the logging level to control the number of log entries in the application log file. The default logging level for Guidewire Solr Extension processes is INFO. This level results in Guidewire Solr Extension log entries that convey a sense of correct system operation as well as any potential or definite problems.
If the default logging level results in too many log entries in the application log file, you must change the level to WARN or ERROR. When the logging level is WARN, the Guidewire Solr Extension log entries convey only potential or definite problems. When the logging level is ERROR, the log entries convey only definite problems. Neither elevated level results in log entries for routine or correct system operation.
Configuring the logging level in embedded mode
If you are operating Guidewire Solr Extension in embedded mode, setting the logging level to WARN or ERROR requires modifying the log4j2.xml file. You can access this file at the following location in Guidewire Studio:
In the log4j2.xml file, set the org.apache.solr
logger either to WARN or ERROR. Moreover, ensure
that one of the following lines is present in the <loggers> section of the
log4j2.xml file:
<Logger name="org.apache.solr" level="warn"/>
<Logger name="org.apache.solr" level="error"/>
If one of the lines is present but commented out, remove the XML comment delimiters. If neither line is present, add one of the lines.
Configuring the logging level in external mode
If you are operating Guidewire Solr Extension in external mode, setting the logging level requires modifying the log4j1.2.xml file. You can access this file at the following path: opt/gwsolr/pc/server/resources/log4jproperties.
In the log4j1.2.xml file, follow the same step as for configuring the
logging level in embedded mode. Ensure that one of the following lines is present in the
<Loggers> section:
<Logger name="org.apache.solr" level="warn"/>
<Logger name="org.apache.solr" level="error"/>
Remove XML comment delimiters if one of the preceding lines is present. If neither line is present, add one of the lines.
