Data Management Using Business Manager Usage24% of the exam

Custom Log Settings and reaching log files

Turning script logging on and finding its output: Custom Log Settings levels per category and fatal email, why debug never reaches files on production, the Request Log on sandboxes, the WebDAV routes to the Logs folder, and the size, retention and suppression rules that make messages disappear.

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

~7 min read · 9 practice questions ·

What the exam expects

  • Enable the right level for a log category in Custom Log Settings so script messages reach a custom log file, and set up email for fatal messages.
  • Explain why debug output never appears in production files and choose a workable alternative.
  • Get detailed errors for a request on a sandbox with the Request Log, and reach log files through Development Setup or a WebDAV client.
  • Apply the 10 MB daily cap, the 30-day and 90-day retention rules, log_archive, and redundancy suppression to explain missing or vanished messages.
  • Recognise the custom named log file limits that make getLogger throw.

Key terms: log category (the name passed to Logger.getLogger, configured per level in Business Manager); custom log file (a custom* file written by script logging); Custom Log Settings (the Operations page that enables levels per category); in-memory logging (debug capture on non-production instances that feeds the Request Log without writing files); Request Log (a Storefront Toolkit tool showing the log entries of recent server calls).

Key facts

System logging
Detail
On by default; changes go through Salesforce Support
Custom debug and info
Detail
Disabled by default; enabled per instance in Custom Log Settings
Debug on production
Detail
Always disabled
Fatal messages
Detail
Always enabled; optional email, sent once every minute
Daily cap
Detail
10 MB per custom file per application server; resumes 00:00 GMT
Retention
Detail
30 days (security 90) on production and staging
Log access
Detail
Development Setup > WebDAV Access, or WebDAV client; no sFTP
Request Log
Detail
Recent server calls, including AJAX, with exceptions and custom logging
Named log files
Detail
200 file names per day per application server
Sources for this section (3)
  • Why can system logs keep growing after the custom files have stopped for the day?
  • When are files in a log folder deleted before their retention ends?
  • Which WebDAV folder holds the records of Business Manager logins?
  • Who can alter the platform's own (non-custom) logging setup?

The questions are free to read. Answers with their sources and self-grading are included with the pack.

Keep reading with the B2C Commerce Developer pack

  • Core concepts
  • Exam traps
  • Worked scenario

The pack includes:

  • All 28 lessons of the B2C Commerce Developer guide, with reading progress
  • Interactive decision walks and step-by-step sequence steppers
  • Practice exams purchase adds inline bank questions and topic practice (9 questions for this lesson)
  • An official source cited for every claim
  • An AI tutor that answers from the guide
  • Choose guide-only, practice-only, or save $4 with both

Practice for the B2C Commerce Developer exam