List of questions
Related questions
Question 28 - Certified B2C Commerce Developer discussion
A Digital Developer needs to add logging to the following code:
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);
Your answer:
0 comments
Sorted by
Leave a comment first