b2c-logs

Retrieve and monitor B2C Commerce logs via the b2c CLI.

51|16|Updated Oct 31, 2025
One-click install
npx skills add https://github.com/SalesforceCommerceCloud/b2c-developer-tooling --skill b2c-logs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: b2c-logs
Source: https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/tree/main/skills/b2c-cli/skills/b2c-logs
Command: npx skills add https://github.com/SalesforceCommerceCloud/b2c-developer-tooling --skill b2c-logs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables teams to quickly fetch and monitor log files from Salesforce B2C Commerce instances using the b2c CLI, making it easy to spot errors, investigate incidents, and verify ongoing health.

Core Features & Use Cases

  • Retrieve Recent Logs: fetch the latest log entries for quick triage.
  • Filter and Search: narrow results by time, level, and text search.
  • Real-Time Tailing: monitor logs as new entries arrive.
  • JSON Output: produce structured data for automation and integration.

Quick Start

Use the b2c CLI to begin querying logs. For example: Run b2c logs get --count 20 --json to fetch the most recent 20 log entries in JSON format.

Frequently Asked Questions about b2c-logs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fetch recent B2C Commerce logs using the CLI?

Fetch recent B2C Commerce logs using the command `b2c logs get --count 20 --json` to retrieve the latest 20 entries in JSON format for quick triage and analysis.

Can I filter B2C logs by time, level, and text search?

Yes, you can filter B2C logs by time, level, and text search to narrow results. This allows you to quickly spot errors and investigate incidents within specific log parameters.

Does the b2c CLI support real-time log tailing for monitoring?

Real-time log tailing is supported by the b2c CLI, allowing you to monitor B2C Commerce instances as new log entries arrive and verify ongoing system health.

How do I output B2C logs in JSON format for automation?

Output B2C logs in JSON format by using the `--json` flag with your b2c CLI commands. This produces structured data suitable for integration and automation workflows.

What is the best way to monitor Salesforce B2C Commerce instance health?

Monitoring Salesforce B2C Commerce instance health is best achieved by using the b2c CLI to fetch recent logs, filter by severity level, and tail output in real-time to spot errors.

Do I need the b2c CLI to retrieve logs from B2C Commerce instances?

Yes, you need the b2c CLI to retrieve and monitor log files from B2C Commerce instances. It provides dedicated commands for non-interactive retrieval and filterable log queries.