Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) Exam - Topic 1 Question 104 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?
B) logger.debug('Error retrieving profile email, Status Code: {0} was returned.', http.statusCode);
A) logger.getLogger('profile').debug('Error retrieving profile email, Status Code: ', 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);
Berry
1 month agoLavina
1 month agoAmina
2 months ago