withLogger static method

Context withLogger(
  1. Logger? logger
)

returns a new Context, derived from ctx, which carries the provided Logger.

Implementation

static Context withLogger(Logger? logger) {
  return Context.withValue(logger);
}