ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 28 - Certified B2C Commerce Developer discussion

Report
Export

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);
Answers
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);
Answers
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);
Answers
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);
Answers
D.
Logger.getLogger('profile').debug("Error retrieving profile email, Status Code: {0} was returned.", http.statusCode);
Suggested answer: B
asked 23/09/2024
kinshuk choubisa
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first