beautypg.com

5 configure connector logs, Logging properties file – Google Search Appliance Connectors Administration Guide User Manual

Page 25

background image


5 Configure Connector Logs

The connectors log processing messages, including exceptions and warnings. Log
messages appear in the

Connector Dashboard

and you can download the logs, as

described in

Download rich data about the connector

.


Messages contain information about thread processing, including:

Date stamp--Date and time the message was logged

Name-of-thread--The thread that generated the message

Last-30-characters-of-method--Code source for connector request

Logging level--Filter log messages by level of severity

Log-message--Text message for log entry


The following example shows a log message:

06-12 18:20:08.839 background URLConnection.getInputStream() FINE:
sun.net.www.MessageHeader@b20ccbf12 pairs:...

Logging properties file

Log configuration is controlled by the logging.properties file. Each connector
installation procedure in this documentation contains a step for editing
logging.properties

. By editing values in this file, you can configure the following

settings:

Location of logs

Logging level

Log file size

Number of log files


The following example shows a logging.properties file with default values.

.level=INFO

handlers=java.util.logging.FileHandler,java.util.logging.ConsoleHandler

java.util.logging.FileHandler.formatter=com.google.enterprise.adaptor.CustomF
ormatter

java.util.logging.FileHandler.pattern=logs/adaptor.%g.log

java.util.logging.FileHandler.limit=10485760