Documentation ¶
Overview ¶
Package ctxlog allows logging data stored with a context.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CtxKVFunc ¶
CtxKVFunc creates logger key-value pairs from a context. CtxKVFuncs should aim to be be as efficient as possible—ideally only doing the minimum to read context values and generate KV pairs. Each associated CtxKVFunc is called every time we adapt a logger with Logger.
func SimpleStringFunc ¶
SimpleStringFunc is a helper that generates a simple CtxKVFunc that returns a key-value pair if found on the context.
Click to show internal directories.
Click to hide internal directories.