Question

8
Replies
1748
Views
Debraj Bhowmik (DebrajB7)
Cognizant

Cognizant
IN
DebrajB7 Member since 2012 12 posts
Cognizant
Posted: March 5, 2018
Last activity: March 6, 2018
Posted: 5 Mar 2018 4:27 EST
Last activity: 6 Mar 2018 6:53 EST
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, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.