Posted: 29 Oct 2015 10:14 EDT Last activity: 14 Apr 2017 7:09 EDT
Raw SOAP Request Envelope Logging
User has a requirement to log all Raw SOAP Service Request Envelopes. Through searching the PDN they found that setting the Logging Level of the com.pega.pegarules.integration.engine.internal.services.soap.SOAPService logger to debug will achieve this functionality but we need a way to do this more gracefully and write them to their own personal log based on the service being invoked. They have two questions that pertain to two separate ideas for solving this issue: 1. Is the raw envelope present on the clipboard when the Service rule is first invoked before the Parse XML is applied and if so, where? If this is the case then they can simply use a data transform to store the raw message before applying parse logic. 2. Is there a way to update the prlogging.xml file in order to write service logging to a separate file than the main Pega logs and, if so, would it be possible to go even one step further and write each request to a separate log based on the service being invoked?
***Updated by moderator: Lochan to add Categories***
Yes you can configure prlogging.xml to write debug output from specific Rule/Classes to go to a separate file.
TYou essentially create a file appender and then for whatever classes you want have the output from those classes reference the new appender. In this example the output from ExtractImpl, ExtractParameters, and DatabaseUtilsCommonImpl are sent to the PegaBIX log.