Need to pass additional information to Error logs.
We need to pass additional level of information to error/warning logs. These logs are not business errors more likely generic errors (there for can not update in certain connectors or activities.) Is there any place we can do the change so logs will have below information as well?
Sample error Log attached here. *SampleAdditionalInfo1* is where we would like to place the info.
Additional Info needed: PRPC Node, MessageId, UserId, WorkObject ID
Pega Versoin: 6.1 SP2
***Moderator Edit-Vidyaranjan: Updated SR details***
You can use pega logger and your custom loggers in that.Please follow below approach.
1.Open an activity in which you want to add logger.
2.Click on show java for that.
3.In the java code you will find an object of logger with name as oLog.
4.if you see that you will find oLog.info(some message).Similarly you can use this oLog object to print your custom message.You can use oLog.info/debug/warn/error based on the type of your message.for example if you want to show informational message then you can use oLog.info.