MCPcopy
hub / github.com/gofiber/fiber / WithContext

Function WithContext

log/fiberlog.go:121–123  ·  view source on GitHub ↗

WithContext binds the default logger to the provided context and returns the contextualized logger.

(ctx any)

Source from the content-addressed store, hash-verified

119// WithContext binds the default logger to the provided context and returns the
120// contextualized logger.
121func WithContext(ctx any) CommonLogger {
122 return logger.WithContext(ctx)
123}
124
125// SetLogger sets the default logger and the system logger.
126// Note that this method is not concurrent-safe and must not be called

Calls 1

WithContextMethod · 0.65