b2c-logs_skill

This skill retrieves and monitors Salesforce B2C Commerce logs, enabling rapid error detection and contextual debugging across services.
  • TypeScript

20

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill salesforcecommercecloud/b2c-developer-tooling --skill b2c-logs

  • SKILL.md4.4 KB

Overview

This skill uses the b2c CLI to retrieve and monitor logs from Salesforce B2C Commerce instances. It provides agent-friendly, non-interactive log retrieval with structured JSON output and supports filtering by time, level, and text. Use it to fetch recent errors, search log messages, or tail logs in real time for human troubleshooting.

How this skill works

The skill runs b2c logs get to return recent entries and supports --json for structured results that include file, timestamp, level, message, and raw fields. It accepts filters such as --since (relative or ISO time), --level, --search, and --filter (log type) to narrow results, and it normalizes file paths so IDEs can open referenced files. For interactive monitoring, b2c logs tail streams entries until interrupted.

When to use it

  • Investigating user reports like "throwing an error", "broken", or "not working" on server side.
  • Fetching recent ERROR or FATAL entries after a failed controller call, job run, or custom API request.
  • Searching for specific text such as exception class names, module names, or transaction IDs across recent logs.
  • Filtering logs by time window to correlate errors with deployments or external events.
  • Tailing logs in real time during manual reproduction or live debugging (human use).

Best practices

  • Use --json for programmatic analysis and to get file names for full downloads via WebDAV.
  • Combine --since, --level, and --search to quickly isolate relevant failures and reduce noise.
  • Prefer recent relative times (e.g., 5m, 1h) when investigating live incidents; use ISO timestamps for historical lookups.
  • List available log types with b2c logs list before querying to confirm which files exist.
  • Use tail only for interactive troubleshooting; non-interactive agents should rely on logs get with --json.

Example use cases

  • Run b2c logs get --since 1h --level ERROR --search "PaymentProcessor" --json to find recent payment failures.
  • After a failing job, fetch job logs with b2c logs get --filter jobs --since 2h to inspect execution details.
  • When a controller throws, search for controller class or pipeline names across error and customerror logs.
  • List available logs with b2c logs list --json, then download a full file via the WebDAV skill using the returned file name.
  • During a live demo or reproduction, use b2c logs tail --filter error --level ERROR to watch errors as they occur.

FAQ

--json returns structured output with count and entries; each entry includes file, timestamp, level, message, and raw fields for parsing or linking to full files.

How do I download a complete log file?

Use the file field from --json output with b2c webdav get <filename> --root=logs -o - to stream or save the full log file.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational