Support Article
Changing CTI default Log location
SA-15861
Summary
There is a requirement to update CTI logging locations for a single CTI engine for PegaCall 7.1.3.1.
Resolution
Modify the prlogging.xml file to include the below (3 examples):
<appender name="com.pega.pegacti" class="com.pega.apache.log4j.DailyRollingFileAppender">
<param name="DatePattern" value="'.'yyyy-MM-dd'.log'"/>
<param name="File" value="C:\\AppServer\\tomcat\\apache-tomcat-7.0.64f\\bin\\testlogs\\PegaCTI_COMMONxxxxx_apache.log"/>
<layout class="com.pega.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%20.20t] [%10.10X{pegathread}] [%20.20X{app}] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n"/>
</layout>
</appender>
<category name="com.pega.pegacti" additivity="false">
<priority value="debug" />
<appender-ref ref="com.pega.pegacti" />
</category>
==============================
<appender name="CTI.xxxxx.xxxxx1" class="com.pega.pegarules.priv.util.DailySizeRollingFileAppenderPega">
<param name="FileNamePattern" value="'C:\\AppServer\\tomcat\\apache-tomcat-7.0.64f\\bin\\testlogs\\PegaCTI-xxxxx1-'yyyy-MMM-dd'.log'"/>
<param name="MaxFileSize" value="50MB" />
<layout class="com.pega.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%20.20t] [%10.10X{pegathread}] [%20.20X{tenantid}] [%20.20X{app}] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n"/>
</layout>
</appender>
<category name="com.pega.pegacti.xxxxx.xxxxx1" additivity="false">
<priority value="debug"/>
<appender-ref ref="CTI.xxxxx.xxxxx1"/>
</category>
==============================
<appender name="CTI" class="com.pega.pegarules.priv.util.FileAppenderPega">
<param name="FileNamePattern"
value="'C:\\AppServer\\tomcat\\apache-tomcat-7.0.64f\\bin\\testlogs\\PegaCTI_COMMONxxxxx-'yyyy-MMM-dd'.log'" />
<layout class="com.pega.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="%d [%20.20t] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n" />
</layout>
</appender>
<category name="com.pega.pegacti" additivity="false">
<priority value="debug" />
<appender-ref ref="CTI" />
</category>
If on windows app server, the value for the path will need to contain double slashes.
For example: <param name="FileNamePattern"
value="'C:\\AppServer\\tomcat\\apache-tomcat-7.0.64f\\bin\\testlogs\\PegaCTI_xxxxx-'yyyy-MMM-dd'.log'" />
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.