Support Article
prlog4j2 format does not allow the filename to be generated
SA-81465
Summary
When combining PegaRULES and PegaBIX logs to a single document, Business Intelligence Exchange (BIX) overwrites the existing rules logs each time an extract starts.
Error Messages
Not Applicable
Steps to Reproduce
Not Applicable
Root Cause
This design is not recommended since it may cause performance issues and issues in readability during debugging.
Additionally, Log4j2 does not support multiple appenders from entering the same file for file locking and synchronization problems. Hence, this caused the BIX logs to overwrite the PegaRULES logs.
Resolution
Perform the following local-change:
- Comment out or remove the RollingRandomAccessFile appender for BIX.
- Use a single appender for Pega and BIX.
- Modify the Logger section for each BIX logger to refer to the Pega appender such that they are written in the same file.
For example,<Logger name="com.pega.pegarules.data.internal.access.ExtractImpl" additivity="false" level="info">
<AppenderRef ref="PEGA"/>
</Logger>
Published August 15, 2019 - 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.