What are two guidelines for logging that are used within the core Salesforce B2B Commerce product? (2 answers)
What are two guidelines for logging that are used within the core Salesforce B2B Commerce product? (2 answers)
A . Items or data within computational intensive loops shouldbe logged.
B . The close method of ccrz.ccLog must be called at the end of the remote action.
C . No calls to ccrz.ccLog can be made before cc_CallContext.initRemoteContext is executed.
D . It is okay to log any data on the server that is already logged on the client side.
Answer: B,C
Explanation:
Two guidelines for logging that are used within the core Salesforce B2B Commerce product are:
The close method of ccrz.ccLog must be called at the end of the remote action. This method will flush the log messages to the browser console or to a custom object, depending on the logging mode. If this method is not called, the log messages may not be displayed or saved properly.
No calls to ccrz.ccLog can be made before cc_CallContext.initRemoteContext is executed. This method will initialize the call context object, which contains information such as the current user, cart, storefront, and configuration settings. These information are required for logging, so calling ccrz.ccLog before initializing the call context will result in an error.
Salesforce Reference: B2B Commerce and D2C Commerce Developer Guide, Logging
Latest B2B Commerce Developer Dumps Valid Version with 79 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund