Return the logger stored in the current AsyncLocalStorage context.
Falls back to the default logger set via setDefaultLogger,
or a freshly created logger if no default has been set.
This is the recommended way to obtain a logger in application code —
it lets frameworks inject a pre-configured logger via runWithLogger
without threading it through every function signature.
Return the logger stored in the current AsyncLocalStorage context. Falls back to the default logger set via setDefaultLogger, or a freshly created logger if no default has been set.
This is the recommended way to obtain a logger in application code — it lets frameworks inject a pre-configured logger via runWithLogger without threading it through every function signature.