b2c-logging

Official

Implement robust logging in B2C scripts.

AuthorSalesforceCommerceCloud
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enables developers to implement structured logging in B2C Commerce scripts using the Logger and Log APIs, providing observability and easier debugging.

Core Features & Use Cases

  • Static and instance logging using Logger and Log
  • Category-based logging with getLogger for modular logs
  • Custom named log files via Logger.getLogger(prefix, category)
  • Nested Diagnostic Context (NDC) tracing to correlate messages across a request
  • Business Manager integration for configuring log levels per category

Quick Start

Instrument a script by getting a logger for a category (e.g., 'checkout') and logging an informational message such as 'Checkout started'.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: b2c-logging
Download link: https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/archive/main.zip#b2c-logging

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.