Previous Topic: Federation Settings in the server.conf File

Next Topic: HttpClient Logging

Logging Settings in the server.conf File

The <Server> element allows you to specify the logging settings for the SPS. The logging defined in this section focuses on the startup and shutdown of the SPS. The logging configuration is done in the Web Agent configuration file (webagent.conf or localconfig.conf) or the Agent Configuration Object configured at the Policy Server.

The logging section has the following format:

# Logging for the server
# 1 - FATAL
# 2 - ERROR
# 3 - INFO
# 4 - DEBUG
loglevel="3" 
logconsole="yes"
logfile="yes"
logappend="no"
# Note: If logfilename is specified as a relative file, it
# will be relative to proxy-engine/
logfilename="logs/server.log"

loglevel

Sets the log level of the SPS server log. The higher the log level, the greater the detail of information that is recorded in the SPS log.

The log levels are as follows:

1

Indicates the least amount of detail in the log. Only fatal errors are recorded at log level 1.

2

Reports any error messages. Any errors that occur during processing are recorded at log level 2.

3

Indicates that warnings and other informational messages are recorded in the log.

4

Indicates debugging.

logconsole

Specifies that the log file is written to the console window.

logfile

Specifies that the log information is written to a file. Set the parameter to yes to write the file to the location specified in the logfilename parameter. Set it to no if you do not want to write the log to a file.

logappend

Indicates that the log information is appended to a log file when the SPS starts. Set this parameter to yes to append data to an existing log file when the SPS restarts. Set this parameter to no if you do not want to append data.

logfilename

Defines the path and filename of the SPS log file. The \\logs\\ portion indicates that the logs appear in the default location sps_home\proxy-engine\logs.