`MemoryCacheAdapterOptions.logger?: Logger` lets the adapter's
production warning flow through the framework's logger (and from
there, every transport the host has wired) instead of always landing
on `console.warn`.
Resolution order:
1. `onProductionWarning?` callback (caller has full control)
2. `logger?.warn(CACHE_MODULE, message)` (framework path, picks up
Sentry/Datadog/Loki/whatever the host uses)
3. `console.warn` (legacy fallback, kept for callers that do not
wire either of the above)
No behavior change for existing apps — the new option is opt-in.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
master
parent
0c15e0b94c
commit
e40fc7fa1c
Loading…
Reference in new issue