You can configure the CA SiteMinder® SPS and HttpClient log settings.
You can configure the server log settings and log rolling settings manually or using Administrative UI.
To configure manually, perform the following steps:
sps_home/Tomcat/properties
Defines the display format of a log message on the console. You can define any log4j date pattern strings.
Defines display format of a log message in the file. You can define any log4j date pattern strings.
Defines the log level of a message. The following list displays the possible values in the increasing order of priority:
If the value is set to OFF, logging is disabled. If the value is set to any other value, logging is enabled.
Defines how a log message is displayed. You can display a log message on a console, or store it in a file, or both.
For example, if the log level is INFO and you want to display a log message on a console and store it in a file, use the following command:
log4j.rootCategory=INFO,SvrConsoleAppender,SvrFileAppender
Specifies the name and path of the log file.
Default Name: server.log
Default Path: install_dir_home/secure-proxy/proxy-engine/logs/
Specifies how the system manages the log file. If this value is set to true, the system appends new log messages to the existing log file when it starts. If this value is set to false, the system rolls over the existing log file and creates a log file for new log messages when it starts.
Specifies the maximum size of the log file after which the system must create a new log file.
Specifies the maximum number of log files that the system creates. If the number of log files exceeds the maximum number that is specified, the system deletes the oldest log file and creates a new log file.
Specifies the date when the system must create a new log file. A new log file is created in the <logfile_name>.<date_format>.
To configure using Administrative UI, perform the following settings:
Specifies that the logs must be stored in a file. Select this option if you want to log messages in a file. By default, this option is enabled.
Specifies the log level of a message. The following list displays the possible values in the increasing order of priority:
If the value is set to OFF, logging is disabled. If the value is set to any other value, logging is enabled.
Defines the display format of a log message in the file. You can define any log4j date pattern strings.
Specifies how the system manages the log file. If this value is set to true, the system appends new log messages to the existing log file when it starts. If this value is set to false, the system rolls over the existing log file and creates a log file for new log messages when it starts.
Specifies the log rolling mechanism.
Specifies the maximum size of the log file after which a new log file is created. This option is displayed only if you selected Log Rotation Type as onFileSize.
Defines the maximum number of log files that must be created. If the number of log files exceeds the maximum number that is specified, the oldest log file is deleted and a new log file is created. This option is displayed only if you select Log Rotation Type as onFileSize.
Specifies the class name that defines the rollover schedule based on the selected log rotation type.
Default for OnAge Log Rotation Type: org.apache.log4j.DailyRollingFileAppender
Default for OnSize Log Rotation Type: org.apache.log4j.DailyRollingFileAppender
Specifies the date when a logfile must be created. You can define any log4j date pattern strings. This option is displayed only if you select Log Rotation Type as onAge.
Specifies the name of the log file.
We recommend that you enable HttpClient logging only for debugging. In a production environment, enabling logging can cause performance degradation.
To configure the settings manually, perform the following settings:
sps_home\Tomcat\properties
Defines the name of the formatter class
Limits:
java.util.logging.SimpleFormatter — writes brief summaries of log records
java.util.logging.XMLFormatter — writes detailed descriptions in XML format
Defines the name of the HttpClient log file.
Limits:
sps_home\proxy-engine\logs\httpclient%g.log
%g represents the generation number of the rotated log file.
Specifies the number of output files in a cycle.
Specifies an approximate maximum number of bytes to write to any on log file.
Limits: If set to zero, there is no limit.
To configure using Administrative UI, perform the following steps:
Defines the maximum number of bytes to write to any on log file.
Specifies the number of output files in a cycle.
Defines the log level of the wire log.
Defines the file name of the HttpClient log file.
Specifies the name of the formatter class.
Limits:
java.util.logging.SimpleFormatter — writes brief summaries of log records
java.util.logging.XMLFormatter — writes detailed descriptions in XML format
Copyright © 2014 CA Technologies.
All rights reserved.
|
|