beautypg.com

Change the location of logs, Change the logging level, Change the log file size – Google Search Appliance Connectors Administration Guide User Manual

Page 26: Location of logs, Logging level, Log file size

background image


java.util.logging.FileHandler.count=20

java.util.logging.ConsoleHandler.formatter=com.google.enterprise.adaptor.Cust
omFormatter

com.google.enterprise.adaptor.CustomFormatter.useColor=true

Change the location of logs

By default, the logs are saved in logs/adaptor.*.log, in the same directory where the
connector is running.

To change the location of log files, edit the java.util.logging.FileHandler.pattern
value in the logging.properties file:

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

Change the logging level

You can filter messages written to log files by the following Java log levels:

FATAL

WARNING

INFO

FINE

FINER

FINEST


By default, the log level is INFO. The number of messages generated increases with each
level, where FATAL logs the smallest number of messages and FINEST logs the largest.

To change the level of log files, edit the .level value in the logging.properties file:

.level=INFO

Change the log file size

By default, the size of connector log files is 10485760 bytes. Restarting the connector will
create a new log file, regardless of how large the previous one had been.

You can change the size to suit your needs. The limit must be specified as a 32-bit integer,
and thus has an upper limit of 2,147,483,647 (2 gigabytes, about 205 times as large as the
default size).