Have you come across any situation where you need to know more details or debug log for any Pega class to fix issue. One such example I came across when I was calling REST service through Connect-REST.
Connector was continuously failing, and I wanted to know what all things Pega is sending in request-JSON and what response Pega were receiving. I tried to find JSON in tracer but unable to get any help. Then I came know that a Pega Class - named as RestConnector has some debug log message which will print the JSON request and response to Pega log files. Then problem came to me that how should I enable the DEBUG log of this class. After I enable the DEBUG log for this class, i get complete JSON request and response of my connector in Pega rules log, and it helped me a lot to know the root cause of issue.
Full class name - com.pega.pegarules.integration.engine.internal.connect.rest.RESTConnector
So, in this blog let's talk about how to enable the DEBUG log for Pega OOTB classes. For that you need to follow below steps.
Login to Pega Designer Studio.
Goto Records - > SysAdmin - > Log Category Rule. OR search Log Category under Configure - > Search all options menu.
Give Description and name of Log category rule.
Mention full class name for which you want to enable the DEBUG log.
Select the Debug Level as DEBUG or ALL. Thats all.
Remember to change the debug level back to Info or OFF once you done with your debugging as it will put a lot of log entries to Pega Rules Log.
Environment details
Pega Version - 8.6.6 Pega Cloud
Comments