Add more debug logs to `'use cache'` wrapper (#88219)
The cache handlers are generally responsible for adding debug logs to
their methods, see
`packages/next/src/server/lib/cache-handlers/default.ts` for reference.
However, the `'use cache'` wrapper in
`packages/next/src/server/use-cache/use-cache-wrapper.ts` also adds a
few debug logs of its own that pertain to logic that is specific to the
wrapper itself, e.g. when discarding cache entries because of tag
revalidation. With this PR, we're now also logging cache hits and misses
in the Resume Data Cache, as well as when entries are omitted from the
static or runtime shell due to their revalidate, expire or stale values.
Docs:
https://nextjs.org/docs/app/api-reference/directives/use-cache#verbose-logging