Usage Note 43905: Enabling logging for the SAS® Digital Marketing server
To activate logging for the SAS Digital Marketing server, perform the following steps:
- In SAS Digital Marketing Studio, select Tools ► Server Configuration.
- Choose Logging Options.
- Set the Server log level to Level 3: operation, user and server methods accessed.
For UNIX and Linux Operating Environments
- Stop the SAS Digital Marketing server.
- Navigate to the ../SASDigitalMarketing/5.4 directory and add the following argument to the startsrv.ini file:
JavaArgs_12=-Dlog4j.configuration=file:../SASDigitalMarketing/5.4/config/log4j_rmi.xml
- Navigate to the ../SASDigitalMarketing/5.4/config directory, open the log4j_rmi.xml file, and change the following lines to direct the log outputs to the locations of your choice:
<param name="File" value="../SASDigitalMarketing/5.4/logs/sdm_server.log"/>
<param name="File" value="../SASDigitalMarketing/5.4/logs/sdm_platform.log"/>
- Restart the SAS Digital Marketing server using ../SASDigitalMarketing/5.4/startsrv.
The logs are written to the files defined above.
- Ensure that the startsrv script that was used to start the SAS Digital Marketing server has the console std out redirected to a file logs/wrapper.log.
For example, change your command line server start command from nohup ./startsrv & to nohup ./startsrv >logs/wrapper.log &.
For a Windows Operating Environment: Starting SAS Digital Marketing Server as a Service
- Stop the SAS Digital Marketing server.
- Navigate to the C:\Program Files\SASDigitalMarketing\5.4\config; folder and add the following argument to the sem.conf file:
wrapper.java.additional.14=-Dlog4j.configuration=file:C:\Program Files\SASDigitalMarketing\5.4\config\log4j_rmi.xml
- Open the log4j_rmi.xml file, and change the following lines to direct the log outputs to the locations of your choice:
<param name="File" value="C:\Program Files\SASDigitalMarketing\5.4\logs\sdm_server.log"/>
<param name="File" value="C:\Program Files\SASDigitalMarketing\5.4\logs\sdm_platform.log"/>
- Restart the SAS Digital Marketing server service.
The logs are written to the files defined above.
For a Windows Operating Environment: Starting SAS Digital Marketing Server Not as a Service
- Stop the SAS Digital Marketing server.
- Navigate to the C:\Program Files\SASDigitalMarketing\5.4 folder and add the following argument to the startsrv.ini file:
JavaArgs_12=-Dlog4j.configuration=file:C:\Program Files\SASDigitalMarketing\5.4\config\log4j_rmi.xml
- Navigate to the C:\Program Files\SASDigitalMarketing\5.4\config directory, open the log4j_rmi.xml file, and change the following lines to direct the log output to the locations of your choice:
<param name="File" value="C:\Program Files\SASDigitalMarketing\5.4\logs\sdm_server.log"/>
<param name="File" value="C:\Program Files\SASDigitalMarketing\5.4\logs\sdm_platform.log"/>
- Restart the SAS Digital Marketing server using C:\Program Files\SASDigitalMarketing\5.4\startsrv.exe.
The logs are written to the files defined above.
Operating System and Release Information
SAS System | SAS Digital Marketing | Linux for x64 | 5.4 | | 9.2 TS2M3 | |
HP-UX IPF | 5.4 | | 9.2 TS2M3 | |
64-bit Enabled Solaris | 5.4 | | 9.2 TS2M3 | |
64-bit Enabled HP-UX | 5.4 | | 9.2 TS2M3 | |
64-bit Enabled AIX | 5.4 | | 9.2 TS2M3 | |
Microsoft® Windows® for x64 | 5.4 | | 9.2 TS2M3 | |
Solaris for x64 | 5.4 | | 9.2 TS2M3 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Date Modified: | 2012-07-31 16:01:12 |
Date Created: | 2011-08-03 12:23:00 |