Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

PegaCTI log file is being created in multiple places

SA-23255

Summary



The PegaCTI log file is being created both in the folder where it should be given the prlogging.xml configuration file, and in JBoss application servers' log folder.


Error Messages



Not applicable.


Steps to Reproduce



1) Use system parameter -Dweb.tmpdir=to position the Pega log files.
2) Set the Pega CTI logs to go to a specific location.


ROOT CAUSE

Appender entry for log rolling was incorrect for the appender name and reference.
CTI should = com.pega.pegacti


Incorrect entry:
!-- CTI Log -->
<appender name="CTI" class="com.pega.apache.log4j.DailyRollingFileAppender">
<param name="DatePattern" value="'.'yy-MM-dd'.log'"/>
<param name="File" value="${web.tmpdir}/PegaCTI"/>
<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="CTI" />
</category>

Resolution



Following is the corrected prlogging.xml entry:

<!-- CTI Log -->
<appender name="com.pega.pegacti" class="com.pega.apache.log4j.DailyRollingFileAppender">
<param name="DatePattern" value="'.'yyyy-MM-dd'.log'"/>
<param name="File" value="${web.tmpdir}/PegaCTI"/>
<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>

 

Published June 17, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us