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
PROPTYPEDESCRIPTION
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 });Related
RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter
MetadataOpen in GitHub ↗
CustomMutationHandler
Handler registered on a for a named custom mutation — an operation with no firstclass kernel method. Every name declared in CartCapabilities.customMutations mus
ITracer
Minimal tracing interface accepted by the middleware and optionally supplied on . Mirrors the OTel Tracer shape without a direct dependency so hosts can bridge