ExamGecko
Question list
Search
Search

Question 54 - Certified B2B Commerce Developer discussion

Report
Export

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.
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.
Answers
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.
Answers
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.
Answers
D.
It is okay to log any data on the server that is already logged on the client side.
Suggested 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

asked 23/09/2024
Bruce Tablada
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first