MCPcopy
hub / github.com/rs/zerolog / Ctx

Function Ctx

log/log.go:129–131  ·  view source on GitHub ↗

Ctx returns the Logger associated with the ctx. If no logger is associated, a disabled logger is returned.

(ctx context.Context)

Source from the content-addressed store, hash-verified

127// Ctx returns the Logger associated with the ctx. If no logger
128// is associated, a disabled logger is returned.
129func Ctx(ctx context.Context) *zerolog.Logger {
130 return zerolog.Ctx(ctx)
131}

Callers 2

ExampleCtxFunction · 0.92
FromRequestFunction · 0.92

Calls 1

CtxFunction · 0.92

Tested by 1

ExampleCtxFunction · 0.74