Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext retrieves a *zap.Logger embedded in a context.Context using ToContext.
func WrapHandler ¶
WrapHandler wraps an http.Handler, adding request logging and decorating its request context with the logger.
When you call FromContext with a wrapped http handler's request object it will return the logger passed here.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.