INFO_FORCED messages in the log files
For each email sent, the following message is generated in the logs:
[http-apr-8080-exec-4] [TABTHREAD2] [ ] [CEMIns:01.05] (lAttachments._baseclass.Action) INFO mnsvcs-prod1-internal.pegacloud.io|220.127.116.11 [email protected] - In @baseclass.SendEmailWithAllAttachments
Since it is a debug message, it should not appear in the logs. It may cause the logs to grow rapidly when many email messages are sent.
The SendEmailWithAllAttachments activity on Work- level does not log this information. However, the rule on @baseclass logs the information with INFO_FORCED logging level.
Steps to Reproduce
Send an email with attachments.
A defect in Pegasystems’ code or rules.
The hot fix changes the logging level from INFO_FORCED to INFO.
Change the SendEmailWithAllAttachments activity's logging level when the default logging level must be INFO and is required to remove the log messages.
Open the respective activity's Java code ("Action" >"Show Java") to retrieve the name of the logger to re-configure.
The following line in the Java code contains the corresponding logger name,
private static final LogHelper oLog = new LogHelper(...);
The argument for the constructor is the name of the logger, in this case, 'Rule_Obj_Activity.SendEmailWithAllAttachments._baseclass.Action'.
However, INFO_FORCED cannot be switched off using this method.
100% found this useful