Cert++
Close

Request Log in the Storefront Toolkit for script debugging

Key Takeaway

A script's custom log messages appear in the Request Log only if they pass the category rules in Custom Log Settings. A category rule covers its subcategories, takes precedence over the root rule, and sets a minimum level, so a Warn rule shows Warn, Error and Fatal messages but filters out Info and Debug.

The Request Log is a Storefront Toolkit tool that shows the log entries for the server calls a storefront page makes, in real time. Developers use it to debug scripts, because it shows server exception information and the custom log messages their own code writes as soon as a request runs. Which custom messages show up depends on the custom log settings in Business Manager.

What the Request Log shows

The Request Log shows log entries for the most recent server call and for any server calls made while the tool is open. Those calls include AJAX calls and other script calls, not just full page loads.

The entries include exception information from the server and the custom log messages your script writes, shown in real time. So when you click a storefront element, you see right away what the script behind it logged or threw.

B2C Commerce Developer Study Guide

Checklist progress

0/237Learned

Given a debugging requirement or code, configure the logging categories and access the logs in Business Manager

0/6

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other B2C Commerce Developer studiers.