Question

1
Replies
609
Views
JoséLuisL Member since 2016 8 posts
Cognizant
Posted: 1 year ago
Last activity: 1 year 4 months ago
Closed

Where to find the LogContext keys list available

Hi,

How can I retrieve the complete list of keys stored in com.pega.pegarules.priv.LogContext, so I can use them in prlog4j2.xml to define the pattern of the logs?

   <RollingRandomAccessFile  name="PEGA" fileName="${sys:pega.logdir}/PegaRULES.log" filePattern="${sys:pega.logdir}/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="250 MB"/>

      </Policies>

      <DefaultRolloverStrategy max="20"/>

   </RollingRandomAccessFile>  

For example, I know we can use the above ones: pegathread, tenantid, app, stack or userid... what else? Thanks!

Regards,

José Luis.

System Administration
Moderation Team has archived post
Share this page LinkedIn