Previous Topic: Agent for SharePoint Logging

Next Topic: SiteMinder Web Agent Logging

Server Logging

The Server.log file defines the startup and shutdown of the Agent for SharePoint. The <Server> element in the server.conf allows you to specify the logging settings for the Agent for SharePoint. The Web Agent error logging and trace 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.

Logging is enabled by default in the server.conf file and the log level is set to 2.

The logging section has the following format:

# Logging for the server
# 1 - FATAL
# 2 - ERROR
# 3 - INFO
# 4 - DEBUG
loglevel="2" 
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 Agent for SharePoint server log. The higher the log level, the greater the detail of information that is recorded in the Agent for SharePoint 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, the highest level of detail in the log.

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 Agent for SharePoint starts. Set this parameter to yes to append data to an existing log file when the Agent for SharePoint restarts. Set this parameter to no if you do not want to append data.

logfilename

Defines the path and filename of the Agent for SharePoint log file. The default location is logs/server.log.