Support Article
Rollout log causes 'No output stream or file named'
SA-12756
Summary
Error found in server logs after configuring PegaRULES log files daily rolling in the prlogging.xml file.
Error Messages
log4j:ERROR No output stream or file set for the appender named [ALERT].
Steps to Reproduce
There are no specific use case to reproduce this issue.
Root Cause
In prlogging.xml file, the required File parameter is missing in the ALERT File Appender definition of class com.pega.apache.log4j.DailyRollingFileAppender.
Resolution
This issue is resolved through the following local-change:
Edit the prlogging.xml file to provide the required parameters for the File Appender definition.
The usual structure of a DailyRollingFileAppender is as follow:
<appender name="YOUR_APPENDER_NAME" class="com.pega.apache.log4j.DailyRollingFileAppender">
<param name="DatePattern" value="'.'yyyy-MMM-dd"/>
<param name="File" value="YOUR_LOG_PATH/YOUR_LOG_FILE_NAME"/>
<layout class="com.pega.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="YOUR_CONVERSION_PATTERN" />
</layout>
</appender>
Please see the following PDN article for reference on the procedure to customize logs with the prlogging.xml file:
https://pdn.pega.com/node/2068
Published August 28, 2015 - 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.