Question
What is the Syntax for Logger name
How to add logger for an activity?
In help of logger level setting it is mentioned as below
"Logger Name - Identify a Java class or other logger category to be logged. Use SmartPrompt to list all Java classes in com.pega.pegarules
, or enter a category. Examples:
Rule-Obj-Activity
to review or update the logging level for all activity executionsRule-Obj-Activity.<activity name>
to update the logging level for all activities with a given name in any Applies To class.com.pega.pegarules.engine.context.Agent
to update the level for all agent"
Where as the actual loggers are formed as "Rule_Obj_Activity.SendDeadlineMails.JLL_FW_SCFW_Work.Action"
The above one works for me.
***Edited by Moderator: Pallavi to update platform capability tags***
But if i add a logger name as mentioned in help.(Rule-Obj-Activity.<activity name> ). Logging is not happening.
Rule-Obj-Activity.SendDeadlineMails
Which one is correct? Kindly share your thoughts.
Hi
Towards the top of the Java code will be an entry for LogHelperoLog. The logger name will be the string in quotes.
Here is an example:
private static final LogHelperoLog = new LogHelper("Rule_Obj_Activity.ShowNewFlowHtml.Work_.Action");
This string value (without the quotes) can be entered into the Logger Name field and the debug level can then be set.
you can try with above steps.
Thanks