Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
docs: add payload.logger.error usage guidelines to CLAUDE.md (#15398)
# Overview Documents proper `payload.logger.error()` usage patterns in CLAUDE.md, mirroring the existing `proper-payload-logger-usage` eslint rule. ## Key Changes - Added Logger Usage section under "Coding Patterns and Best Practices" - Valid patterns: single string or object with `msg`/`err` keys - Invalid patterns: error as second argument, wrong key names (`error`/`message` instead of `err`/`msg`) ## References / Links - [proper-payload-logger-usage.js](https://github.com/payloadcms/payload/blob/main/packages/eslint-plugin/customRules/proper-payload-logger-usage.js)
E
Elliot DeNolf committed
cdbfda2371540a01f3f6ec1e834bfcb8616f985f
Parent: 5561799
Committed by GitHub <noreply@github.com>
on 1/28/2026, 8:38:20 PM