Dhananjay Ubale (DhananjayU)
Dhananjay Ubale
DhananjayU Member since 2021 2 posts
Posted: June 28, 2021
Last activity: July 1, 2021
Posted: 28 Jun 2021 14:18 EDT
Last activity: 1 Jul 2021 10:37 EDT

Custom logging - Add pyID automatically

When a developer uses Log-Message/pxLogMessage then Pega prefixes certain key attributes before the custom message. Looking to add pyID or custom attributes.

Ex log - 

2021-06-28 14:02:35,423 [default task-66] [STANDARD] [] [Play:01.01.01] (Session.Embed_Requestor.Action) ERROR localhost| OperID - Testng simple log message

Three questions-

1) Is there any way OOTB to add pyID automatically in one of the square brackets? Custom logger or anything in log4j?

2) Also soon after time stamp what is the first square [default task-66] ?

3) Is there anything in PDC which gives ability to print pyIDData collected by Pega Predictive Diagnostic Cloud | Pega -> Data Security -> DSS prconfig/alerts/parameterpage/allowedkeywords/default - Is pyID a valid parameter which can go in this DSS.


FYI Reason for printing pyID - We are using stateless DX API - say any exception occurs in DX API- we want to relate the failure to userid/caseid.



Pega Platform Enterprise Application Development Dev/Designer Studio Data Integration Java and Activities User Experience Lead System Architect