Logger com.pega.pegarules.integration.engine.internal.connect.rest.RESTconnector not logging the Connect Rest Req/Res
I want to write Connect Rest request/response into custom log file.
I have updated the prlog4j2.xml with following :
1. Added Appender:
<RollingRandomAccessFile name="RESTCONNECTORLOGS" fileName="${sys:pega.logdir}/RestConnector.log" filePattern="${sys:pega.logdir}/RestConnector-%d{MM-dd-yyyy}-%i.log.gz"> <PatternLayout> <Pattern>%d [%20.20t] [%20.20X{tenantid}] [%20.20X{app}] (%30.30c{3}) %-5p %X{stack} %X{userid} - %m%n</Pattern> </PatternLayout> <Policies> <TimeBasedTriggeringPolicy /> <SizeBasedTriggeringPolicy size="250 MB"/> </Policies> </RollingRandomAccessFile>
2. Added Logger:
<Logger name="com.pega.pegarules.integration.engine.internal.connect.rest.RESTconnector" additivity="false" level="info"> <AppenderRef ref="RESTCONNECTORLOGS"/> </Logger>
New log file with the name "RestConnector.log" is created but System does not write Connect Rest request/response.
What am I missing?