B2c Logging

Implement server-side logging with dw.system.Logger, custom log categories, and named log files. Use this skill whenever the user needs to add debug or error logging to Commerce scripts, write to a dedicated log file, configure log categories and levels, or use nested diagnostic context for tracing. Also use when setting up logging in controllers, hooks, or job scripts -- even if they just say 'add logging to my script' or 'write to a custom log file'.

salesforcecommercecloud 5136e51 3 files · 19.3 KB Updated

File contents

salesforcecommercecloud/b2c-developer-tooling/tree/main/skills/b2c/skills/b2c-logging commit 5136e5149a

Frequently asked questions

npx skillmds@latest add salesforcecommercecloud/b2c-logging