Salesforce-B2C-Commerce-Cloud-Developer Practice Test

Salesforce Spring 25 Release
202 Questions

A developer has a sandbox with code to log a message during execution, and the following code:



After the code executes, the developer does not see any log file with the message in the WebDAV folder. What could the developer do tocorrect this issue?

A. Set the root log level to debug AND check the box for info under Log Files.

B. Set the logging global preference to true AND set the root log level to debug.

C. Set the logging global preference to true AND check the box for Info under Log Files

C.   Set the logging global preference to true AND check the box for Info under Log Files

Explanation:

Key Issue:
The Logger.info(message) call isn’t generating log files in WebDAV.
Two critical settings must be configured for logs to appear:

Solution (Option C):
1. Enable Global Logging Preference
Navigate to Administration > Operations > Logging Preferences in Business Manager.
Set "Enable Logging" to true.

2. Enable "Info" Log Level in Log Files
In the same Logging Preferences section:
Under "Log Files", check the box for "Info".
This ensures Logger.info() calls are captured.

Why Not Other Options?
❌ A. Root log level to debug + Info checkbox
While enabling "Info" logging is correct, debug level is unnecessary for Logger.info() to work.

❌ B. Global preference + debug level
Debug level is overkill, and missing the "Info" checkbox is the core issue.

Reference:
Salesforce Logging Configuration

Salesforce-B2C-Commerce-Cloud-Developer Practice-Test - Home Previous
Page 14 out of 202 Pages