Modify Log File Settings

Log4j Configuration File

SAS Decision Manager uses log4j to perform logging. When SAS Decision Manager starts, the log4j configuration files for the application are read from SAS-config-dir\Lev1\Web\Common\LogConfig\. The filenames are SASBusinessRulesManagerWeb-log4j.xml and SASModelManager-log4j.xml. These files are standard log4j configuration files.
You should not change the existing categories or root logger in a configuration file unless you are instructed to do so by SAS Technical Support.

Logging Priority Levels

You can change the logging priority levels in a log configuration file if needed.
Logging Priority Levels
Priority
Description
DEBUG
The most verbose logging level. This level displays information that is most useful for debugging an application. SAS Decision Manager should run under this priority only for capturing additional log information. This priority level is not an acceptable priority level for the day-to-day operation of SAS Decision Manager.
INFO
Verbose logging level. This level displays messages that highlight the progress of an application. SAS Decision Manager should run under this priority only for capturing additional log information. This priority level is not an acceptable priority level for the day-to-day operation of SAS Decision Manager.
WARN
Restrictive logging. This level displays information about potentially harmful situations and is an acceptable priority for the day-to-day operation of SAS Decision Manager.
ERROR
The most restrictive logging level. This level displays error events and is an acceptable priority for the day-to-day operation of SAS Decision Manager.

Log Files

SAS Decision Manager writes information to the following log files:
SASBusinessRulesManagerWeb2.2.log
contains messages from SAS Decision Manager
SASModelManager13.1.log
contains messages from SAS Decision Manager
SASDecMgrCommon2.2.log
contains messages from the Workflow and Data plug-ins
SASDecMgrShell2.2.log
contains general messages from the Shell
By default, the application writes the SAS Decision Manager log files to SAS-config-dir\Lev1\Web\Logs\SASServer7_1\. The SASModelManager13.1.log file is written to SAS-config-dir\Lev1\Web\Logs\SASServer11_1\. You can change the location of these log files in the configuration file. Changes to the configuration file take effect when the middle-tier application server is restarted. See Administering Logging for SAS Web Applications in SAS Intelligence Platform: Middle-Tier Administration Guide for more information about this configuration file.
SAS Decision Manager creates new log files each day. For information about logging configurations, see Modifying Your Server Logging Configurations in SAS Intelligence Platform: System Administration Guide.

Turn on SQL Logging

To turn on SQL logging and write SQL parameter values for each query to the log file, add the following categories to the log4j.xml configuration file:
<category additivity="false" name="org.hibernate.type">
   <priority value="TRACE"/>
   <appender-ref ref="SAS_FILE"/>
</category>

<category additivity="false" name="org.hibernate.SQL">
   <priority value="DEBUG"/>
   <appender-ref ref="SAS_FILE"/>
</category>