Documentation
¶
Overview ¶
Package log provides helpers to attach a github.com/foomo/keel/log.Labeler to an HTTP request context, so code handling the request can collect additional log fields for it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InjectLabelerIntoContext ¶
InjectLabelerIntoContext returns a copy of ctx carrying a fresh, empty log.Labeler, together with that labeler.
func InjectLabelerIntoRequest ¶
InjectLabelerIntoRequest returns a shallow copy of r whose context carries a fresh, empty log.Labeler, together with that labeler.
func LabelerFromContext ¶
LabelerFromContext returns the log.Labeler injected into ctx by InjectLabelerIntoContext. It reports false if none is present.
func LabelerFromRequest ¶
LabelerFromRequest returns the log.Labeler injected into the context of r. It reports false if none is present.
Types ¶
This section is empty.