I am curious to know if you have the requirement to configure logging service request/response activity to an external file? As prlogging.xml is used mostly for configuring or altering the logging settings in Pega.
The code snippet may help you in writing the binary content to a file(external path in your case) in an activity's Java Step.
f= new java.io.File(FullPath+pdfName);
fileOuputStream = new java.io.FileOutputStream(f);
After the file is ready, invoke an OOTB activity "DownloadFile" to download the file at desired location.
Hope it helps you in achieving the requirement. Kindly notify if it does.
Thank you for your reply. Our application is processing half a million transactions per day, it processes about 2 million transactions on a peak day. We need a good solution to continiously log all the request and response messages to a separate text file. I am not sure if the above suggested java solution works for us.