Modify Log File Settings

Log4j Configuration File

SAS Model Manager uses log4j to perform logging. When SAS Model Manager starts, the log4j configuration file for the web application is read from SAS-config-dir\Lev1\Web\Common\LogConfig\SASModelManager-log4j.xml. This file is a standard log4j configuration file.
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 Model 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 Model Manager.
INFO
Verbose logging level. This level displays messages that highlight the progress of an application. SAS Model 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 Model 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 Model 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 Model Manager.

Log Files

SAS Model Manager writes information to the following log files:
SASModelManager13.1.log
contains messages from SAS Model 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 Model 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>