Documentation
¶
Overview ¶
Package logutil ties a structured zap logger to a context.Context so handlers thread the same logger without explicit arguments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextField ¶
ContextField returns a zap field for a kubeconfig context name.
func ErrorField ¶
ErrorField returns a zap field for an error value.
func UnwrapLogger ¶
UnwrapLogger retrieves the zap logger from the context. Returns a no-op logger when none is present.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.