Question

3
Replies
215
Views
JOHAN.GRALL Member since 2012 17 posts
Lyance
Posted: 2 years ago
Last activity: 1 year 9 months ago
Closed
Solved

prlogging - Log class into specific file but still log in PegaRULES file

Hi,

For my custumer, we want to log REST connexion in specific file.

So we have added a new appender and new category in prlogging.xml file :

<appender name="PEGA-CONNECTOR" class="com.pega.pegarules.priv.util.DailySizeRollingFileAppenderPega">
          <param name="FileNamePattern" value="'@{pegarules.logging.location}/PegaRULES-Connector-'yyyy-MMM-dd'.log'"/>
          <param name="MaxFileSize" value="500MB" />
          <layout class="com.pega.apache.log4j.PatternLayout">
               <param name="ConversionPattern" value="%d [%20.20t] [%10.10X{pegathread}] [%20.20X{tenantid}] [%20.20X{app}] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n"/>
          </layout>
</appender>

<category name="com.pega.pegarules.integration.engine.internal.connect.rest.RESTConnector">
                <priority value="debug"/>
                <appender-ref ref="PEGA-CONNECTOR"/>
</category>

It works but when the REST connector debug log is still in PegaRULES log file.

So the REST connector debug log is in specific file PEGA_Connector.log AND in PegaRULES.log file but we want only in Pega_Connector.log.

Do you know how log only in specific file ?

Thanks,

Johan

***Edited by Moderator Marissa to update platform capability tags**

Data Integration
Moderation Team has archived post
Share this page LinkedIn