MCPcopy Create free account
hub / github.com/belak/gitdir / CtxSetLogger

Function CtxSetLogger

context.go:71–73  ·  view source on GitHub ↗

CtxSetLogger puts the given logger into the ssh.Context.

(parent ssh.Context, logger *zerolog.Logger)

Source from the content-addressed store, hash-verified

69
70// CtxSetLogger puts the given logger into the ssh.Context.
71func CtxSetLogger(parent ssh.Context, logger *zerolog.Logger) {
72 parent.SetValue(contextKeyLogger, logger)
73}
74
75// CtxLogger pulls the logger out of the context, or the default logger if not
76// found.

Callers 1

handlePublicKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected