MCPcopy
hub / github.com/argoproj/argo-workflows / WithLogger

Function WithLogger

util/logging/logging.go:205–207  ·  view source on GitHub ↗

WithLogger adds a logger to the context

(ctx context.Context, logger Logger)

Source from the content-addressed store, hash-verified

203
204// WithLogger adds a logger to the context
205func WithLogger(ctx context.Context, logger Logger) context.Context {
206 return context.WithValue(ctx, LoggerKey, logger)
207}

Callers 15

NewRootCommandFunction · 0.92
getArtifactByUIDMethod · 0.92
gateKeepingMethod · 0.92
TestIsTransientErrFunction · 0.92
TestIsTransientUErrFunction · 0.92
CmdContextWithLoggerFunction · 0.92
LogMiddlewareFunction · 0.92

Calls

no outgoing calls

Tested by 5

TestIsTransientErrFunction · 0.74
TestIsTransientUErrFunction · 0.74
TestContextFunction · 0.68