In the Salesforce B2C Commerce logging system, logs are categorized by severity levels, which include DEBUG, INFO, WARN, and ERROR. With the log level set to WARN in the Business Manager, any log entries with a severity of WARN or higher (which includes ERROR) will be recorded. Therefore, the messages from log.warn("This is a warn message") and log.error("This is an error message") will be written to the log. The INFO and DEBUG messages will not be recorded since their severity is lower than the WARN level set in the configuration.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit