ILogger

cart · /core·interface

Minimal structured-logging interface threaded through . Adapters and middleware log to this sink rather than console directly so hosts can route output to their existing log pipeline.

Properties

debug
(msg: string, meta: Record<string, unknown>) => void
error
(msg: string, meta: Record<string, unknown>) => void
info
(msg: string, meta: Record<string, unknown>) => void
warn
(msg: string, meta: Record<string, unknown>) => void

Example

const ctx: AdapterCtx = { shop: {}, locale, logger: consoleLogger };
ctx.logger.info('cart created', { cartId: cart.id });

RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter

Sourcetypes.ts:297Edit the JSDoc directly

On this page