Salesforce B2C Commerce Logging

•
22
•

Implements robust server-side logging for Salesforce B2C Commerce using the dw.system.Logger framework and best practices.

This skill provides comprehensive guidance and implementation patterns for logging within the Salesforce B2C Commerce (Demandware) environment. It enables developers to effectively use the dw.system.Logger and dw.system.Log classes to capture debug data, track errors, and monitor system health across different functional areas like checkout, payments, and integrations. By leveraging features like log categories, custom named log files, and Nested Diagnostic Context (NDC), developers can create organized, traceable, and performant logging systems that simplify troubleshooting and improve site reliability in production environments.

Características Principales

01Configuration of custom named log files for specific integrations and batch processes
0222 GitHub stars
03Implementation of functional log categories for organized filtering in Business Manager
04Advanced request tracing using Nested Diagnostic Context (NDC) to track complex flows
05Performance optimization via log-level status checking to prevent overhead
06Support for all standard log levels including debug, info, warn, error, and fatal

Casos de Uso

01Setting up dedicated log files for high-volume background jobs or third-party ERP data feeds
02Debugging complex checkout flows or payment gateway integrations with category-specific logs
03Implementing detailed error tracking and fatal alerts for critical site failures and system monitoring