Log Level Settings set to OFF not suppressing InfoForced logging
Setting logging level to OFF for a particular activity do not suppress the InfoForced log messages appended by using the Log-Message method in the Activity with InfoForced logging level specified.
Steps to Reproduce
- Create an activity and add a log statements using Log-Message Method and set the LoggingLevel as "InfoForced".
- Set the logging level for the activity in to OFF.
- Run the Activity.
Here’s the explanation for the reported behavior:
Here is the excerpts from the Help document
If you choose InfoForced, a message is added to the Pega log each time the method executes, independent of settings in the prlog4j2.xml file or settings through the Set Logging Levels tool.
To reduce clutter in the Pega Log and improve performance, be sure to remove such InfoForced steps, or convert them to comments, in production systems.
When debugging is complete, you can delete the steps that use this method or change them to comment steps. This is needed for steps where LoggingLevel is set to InfoForced. For others, if the prlog4j2.xml setting for the Rule-Obj-Activity class is higher than the LoggingLevel parameter, executing this method does not update the Pega log and does not affect performance.
0% found this useful