Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Exam B2C-Commerce-Developer All Questions
Exam B2C-Commerce-Developer All Questions

View all questions & answers for the B2C-Commerce-Developer exam

Salesforce Developers B2C-Commerce-Developer Question # 18 Topic 3 Discussion

B2C-Commerce-Developer Exam Topic 3 Question 18 Discussion:
Question #: 18
Topic #: 3

A Digital Developer needs to add logging to the following code:

B2C-Commerce-Developer Question 18

Which statement logs the HTTP status code to a debug-level custom log file?


A.

logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: ", http.statusCode);


B.

logger.debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);


C.

Logger.getLogger().debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);


D.

Logger.getLogger(‘profile’).debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);


Get Premium B2C-Commerce-Developer Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.