Question

8
Replies
1735
Views
Close popover
Debraj Bhowmik (DebrajB7)
Cognizant

Cognizant
IN
DebrajB7 Member since 2012 12 posts
Cognizant
Posted: March 5, 2018
Last activity: March 6, 2018
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,
Close popover 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.