Modify Log File Settings

Log4j Configuration File

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

Log Files

SAS Business Rules Manager writes information to the following log files:
SASBusinessRulesManagerWeb3.1.log
contains messages from SAS Business Rules Manager
SASDecMgrCommon3.1.log
contains messages from the Workflow and Data plug-ins
SASDecMgrShell3.1.log
contains general messages from the Shell
By default, SAS Business Rules Manager writes log files to SAS-config-dir\Lev1\Web\Logs\SASServer7_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 Business Rules 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>
Last updated: February 22, 2017