withContext<T>(context: Record<string, unknown>,callback: () => T,): T
Runs a callback with the given implicit context. Every single log record in the callback will have the given context.
If no contextLocalStorage
is configured, this function does nothing and
just returns the return value of the callback. It also logs a warning to
the ["logtape", "meta"]
logger in this case.
The return value of the callback.