Previous Topic: Log SettingsNext Topic: Configuring Proxy Rules


Log Rolling Settings

The server log rolling Settings section contains settings for enabling log rolling. You can enable log rolling based on one of the following mechanisms:

This section has the following format:

# Enable the below setting only if file logging is enabled above. if not make it as an comment by adding "#" at the begging of the line.
log4j.appender.SvrFileAppender.File=<logfile_path>
# Enable this only if file logging is enabled above.
# set vale to "true" if messages are to be appended to the existing file. else set to "false"
log4j.appender.SvrFileAppender.Append=true|false
#Configurations to rollover server log file based on file size
log4j.appender.SvrFileAppender=org.apache.log4j.RollingFileAppender
log4j.appender.SvrFileAppender.MaxFileSize=<maximum_logfile_size>
log4j.appender.SvrFileAppender.MaxBackupIndex=<maximum_number_of_logfile>

The Log Rolling Based on File Size section contains the following settings for enabling log rolling based on a file size:

logfile path

Specifies the name and path of the log file.

Default Name: server.log

Default Path: <sps_home>/secure-proxy/proxy-engine/logs/

true|false

Specifies how the SPS manages the log file. If this value is set to true, the SPS appends new log messages to the existing log file when it starts. If this value is set to false, the SPS rolls over the existing log file and creates a log file for new log messages when it starts.

Default Value: true

MaxFileSize

Specifies the maximum size of the log file after which the SPS must create a new log file.

Default Value: 1 MB

MaxBackupIndex

Specifies the maximum number of log files that the SPS creates. If the number of log files exceeds the maximum number that is specified , the SPS deletes the oldest log file and creates a new log file.

Default Value: 10

The Log Rolling Based on File Age section contains the following settings for enabling log rolling based on a file age:

date_pattern

Specifies the date when the SPS must create a new log file.

Default: yyyy-MM-dd

The SPS creates a new logfile in the following format:

<logfile_name>.<date_format> 
logfile_name

Specifies the name of the log file.

Default: server.log

date_format

Specifies the date when the SPS created a logfile. The SPS supports all the log4j date pattern strings.

Default: yyyy-MM-dd