Question4Replies326Views Brahmesh@ Member since 2013 147 posts Capgemini Posted: May 26, 2016Last activity: May 30, 2016 Closed IImportance of LogAgentMessage functionIn OOTB rules I see LogAgentFunction is being used to log the exceptions. I would like to understand the importance of it .Can we use it for App to log the exception?Would it print the log stack completely ? System Administration ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 4 years agoBASAVARAJ PEGA replied to Brahmesh@Hi Brahma,The function is used to logging to log* classes/tables, it will write out instances of the class Log-Agent (this function will be called in activities like SLA)To write instances of Log-Agent, use LogAgentMessage RUF:pega_rules_default.LogAgentMessage(tools, [ruleset], [calling rule], [class of object being logged], [error message])I don't think you can use it for your app to log the exceptions. Posted: 4 years agosahup1 PEGA replied to Brahmesh@>>> Can we use it for App to log the exception? Would it print the log stack completely ?pega_rules_utilities.getStackTrace() [step #5: RULE-OBJ-ACTIVITY ASSIGN- ACQUIREWORKOBJECT]oLog methods [oLog.infoForced("Log message: " + messageData);]Log-Message/sendDebugMessageToTracer function to write output to tracer from a java step [pega_rules_utilities.sendDebugMessageToTracer("<String>","<String>");]. Posted: 4 years agoBrahmesh@ Capgemini replied to sahup1I don't think so utility function is required to get complete log stack .if we pass "GenerateStackTrace" parameter of Log-Message Method then wouldn't it generate the stack trace ? Posted: 4 years agosahup1 PEGA replied to Brahmesh@>>> if we pass "GenerateStackTrace" parameter of Log-Message Method then wouldn't it generate the stack trace ?it will.