Question

8
Replies
1682
Views
DebrajB7 Member since 2012 12 posts
Cognizant
Posted: 2 years ago
Last activity: 2 years 7 months ago
Closed
Solved

What is the appender for prlog4j2.xml in Pega 7.3.1 for daily log rolling?

Please inform what should be included and where in prlog4j2.xml for daily log rolling. Is the change needed for <TimeBasedTriggeringPolicy /> tag?

A part of prlog4j2.xml is given below:
<RollingRandomAccessFile name="PEGA" fileName="/pega/log1/PegaRULES-${date:yyyy-MM-dd}.log" filePattern="/pega/log1/PegaRULES-%d{MM-dd-yyyy}-%i.log.gz">
<PatternLayout>
<Pattern>%d [%20.20t] [%10.10X{pegathread}] [%20.20X{tenantid}] [%20.20X{app}] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n</Pattern>
</PatternLayout>
<Filters>
<!--Deny message logged under ALERT log level-->
<ThresholdFilter level="ALERT" onMatch="DENY" onMismatch="NEUTRAL"/>
</Filters>
<Policies>
<TimeBasedTriggeringPolicy />
<SizeBasedTriggeringPolicy size="100 MB"/>
</Policies>
<DefaultRolloverStrategy max="20"/>
</RollingRandomAccessFile>

Moderation Team has archived post
Share this page LinkedIn