What are two guidelines for logging that are used within the core Salesforce
B2B Commerce product? (2 answers)
Suggested Answer: B, C
Get Premium Salesforce Accredited B2B Commerce Developer Professional (AP-202) Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
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.
23 comments · newest first
ST
Stevie
10 months ago
Logging on both sides? Seems redundant, D doesn't make sense.
CA
Carolann
10 months ago
I thought A was important too, but I guess not.
MO
Mollie
11 months ago
Definitely B and C! Those are key.
NO
Norah
11 months ago
I agree with B, but C seems a bit strict.
SH
Sherman
11 months ago
Wait, logging before initRemoteContext? That sounds risky!
LE
Leah
11 months ago
I think it’s not okay to log data on the server if it’s already logged on the client side, but I’m a bit confused about that one.
WI
Willis
12 months ago
I feel like I studied that no calls to ccrz.ccLog can happen before initializing the remote context. That seems important!
DE
Desmond
12 months ago
I remember something about logging in loops, but I can't recall if it's a guideline or just a best practice.
AN
Anglea
1 year ago
I think one of the guidelines is about calling the close method of ccrz.ccLog at the end of the remote action, but I'm not completely sure.
NI
Nieves
1 year ago
I've worked with the Salesforce B2B Commerce product before, so I'm feeling confident about this question. I'll review the options and select the two that best match the guidelines I'm familiar with.
CA
Carlee
1 year ago
This is a good opportunity to demonstrate my knowledge of the Salesforce B2B Commerce logging best practices. I'll be sure to select the two most relevant guidelines.
IN
Inocencia
1 year ago
Okay, I think I've got a handle on this. I'll focus on the key points about logging, like not logging sensitive data and making sure to call the close method.
KI
Kimberely
1 year ago
Hmm, I'm a bit confused by the wording of the question. I'll need to make sure I understand the core guidelines before selecting the answers.
SA
Sabra
1 year ago
This looks like a tricky one. I'll need to carefully read through the options and think about the guidelines for logging within the Salesforce B2B Commerce product.
AL
Alberto
1 year ago
I believe option B is correct because closing the log properly is essential for proper execution.
MI
Micaela
1 year ago
Option C seems wrong to me. Logging can definitely happen before cc_CallContext.initRemoteContext is executed.
ER
Erick
1 year ago
I'm pretty sure option B is correct. The close method of ccrz.ccLog must be called at the end of the remote action to ensure proper logging.
ED
Edda
10 months ago
True, My. But I still feel B and C are more critical for the core process.
MY
My
10 months ago
What about option A? Logging in loops can help track performance issues.
SK
Skye
10 months ago
I agree with you, Gaynell. Both B and C seem essential for proper logging.
GA
Gaynell
11 months ago
I think option C is also correct. It makes sense to initialize the context first.
VI
Vilma
1 year ago
I agree, it's crucial to follow the guidelines to ensure smooth operation of the product.
JO
Josphine
1 year ago
I think the guidelines for logging in Salesforce B2B Commerce are important for efficient debugging.