SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 51753: Setting an asynchronous appender (logger) for SAS® Customer Intelligence Core middle-tier log files

DetailsAboutRate It

The SAS Customer Intelligence Core middle-tier application uses a synchronous log appender by default. In some situations, you might want to use an asynchronous appender instead of, or in addition to, the synchronous appender. Below is an example of a logging configuration that uses both appenders.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<!-- debug="true" is equivalent to -Dlog4j.debug -->

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">

    <appender class="com.sas.ci.services.common.log.ServiceAppender" name="SAS_ FILE">
        <param name="datePattern" value="'.'yyyy-MM-dd"/>
        <param name="append" value="true"/>
        <param name="file" value="${config.lev.web.appserver.logs.dir}/SASCustIntelCore6.3.log"/>
        
        <layout class="org.apache.log4j.PatternLayout">
            <param name="ConversionPattern" value="%d{ISO8601} %p [%X{sas.session.id}] [%X{sas.user.name}] [%X{sas.local.session.id}] %c{1}  %m %n"/>
        </layout>
    </appender>
    
    <appender name="ASYNC_ FILE" class="org.apache.log4j.AsyncAppender">
        <param name="BufferSize" value="100000"/>
        <param name="Blocking" value="false"/>
        <appender-ref ref="SAS_ FILE"/>
    </appender>    
    
    <!-- to avoid parsing errors, loggers must come after appenders -->
    
    <logger name="com.sas.analytics.crm" additivity="false">
        <level value="DEBUG"/>
        <appender-ref ref="ASYNC_ FILE"/>
    </logger>

    <root>
        <priority value="ERROR"/>
        <appender-ref ref="ASYNC_ FILE"/>
    </root>

</log4j:configuration>


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS Marketing AutomationSolaris for x64
Linux for x64
Linux on Itanium
Linux
HP-UX IPF
64-bit Enabled Solaris
64-bit Enabled HP-UX
64-bit Enabled AIX
Windows Vista
Windows Vista for x64
Windows Millennium Edition (Me)
Windows 7 Ultimate x64
Windows 7 Ultimate 32 bit
Windows 7 Professional x64
Windows 7 Professional 32 bit
Windows 7 Home Premium x64
Windows 7 Home Premium 32 bit
Windows 7 Enterprise x64
Windows 7 Enterprise 32 bit
Microsoft Windows XP Professional
Microsoft Windows Server 2012 Std
Microsoft Windows Server 2012 R2 Std
Microsoft Windows Server 2012 R2 Datacenter
Microsoft Windows Server 2012 Datacenter
Microsoft Windows Server 2008 for x64
Microsoft Windows Server 2008 R2
Microsoft Windows Server 2008
Microsoft Windows Server 2003 for x64
Microsoft Windows Server 2003 Standard Edition
Microsoft Windows Server 2003 Enterprise Edition
Microsoft Windows NT Workstation
Microsoft Windows Server 2003 Datacenter Edition
Microsoft Windows 2000 Professional
Microsoft Windows 2000 Server
Microsoft Windows 2000 Datacenter Server
Microsoft Windows 95/98
Microsoft Windows 2000 Advanced Server
Microsoft Windows 8.1 Pro 32-bit
Microsoft Windows 8.1 Pro
Microsoft Windows 8.1 Enterprise x64
Microsoft Windows 8.1 Enterprise 32-bit
Microsoft Windows 8 Pro x64
Microsoft Windows 8 Pro 32-bit
Microsoft Windows 8 Enterprise x64
Microsoft Windows 8 Enterprise 32-bit
Microsoft® Windows® for x64
Microsoft Windows XP 64-bit Edition
Microsoft Windows Server 2003 Enterprise 64-bit Edition
Microsoft Windows Server 2003 Datacenter 64-bit Edition
Microsoft® Windows® for 64-Bit Itanium-based Systems
SAS SystemSAS Real-Time Decision ManagerTru64 UNIX
Solaris for x64
OpenVMS Alpha
Linux on Itanium
Linux for x64
Linux
HP-UX IPF
64-bit Enabled Solaris
64-bit Enabled AIX
64-bit Enabled HP-UX
SAS SystemSAS Customer Intelligence Core Mid-TierSolaris for x64
Linux for x64
HP-UX IPF
64-bit Enabled Solaris
64-bit Enabled AIX
Windows Vista for x64
Windows Vista
Windows Millennium Edition (Me)
Windows 7 Ultimate x64
Windows 7 Ultimate 32 bit
Windows 7 Professional x64
Windows 7 Professional 32 bit
Windows 7 Home Premium x64
Windows 7 Home Premium 32 bit
Windows 7 Enterprise x64
Windows 7 Enterprise 32 bit
Microsoft Windows XP Professional
Microsoft Windows Server 2012 Std
Microsoft Windows Server 2012 R2 Std
Microsoft Windows Server 2012 R2 Datacenter
Microsoft Windows Server 2012 Datacenter
Microsoft Windows Server 2008 for x64
Microsoft Windows Server 2008 R2
Microsoft Windows Server 2008
Microsoft Windows Server 2003 for x64
Microsoft Windows Server 2003 Standard Edition
Microsoft Windows Server 2003 Enterprise Edition
Microsoft Windows Server 2003 Datacenter Edition
Microsoft Windows NT Workstation
Microsoft Windows 2000 Professional
Microsoft Windows 2000 Server
Microsoft Windows 2000 Datacenter Server
Microsoft Windows 2000 Advanced Server
Microsoft Windows 95/98
Microsoft Windows 8.1 Pro 32-bit
Microsoft Windows 8.1 Pro
Microsoft Windows 8.1 Enterprise x64
Microsoft Windows 8.1 Enterprise 32-bit
Microsoft Windows 8 Pro x64
Microsoft Windows 8 Pro 32-bit
Microsoft Windows 8 Enterprise x64
Microsoft Windows 8 Enterprise 32-bit
Microsoft® Windows® for x64
* 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.