Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewLogger func() logr.Logger = func() logr.Logger { panic("NewLogger must be set to a function that can create new logger instances") }
NewLogger returns a new instance of a Logger. This variable should be set to a function that returns an implementation of Logger before using FromContext.
Functions ¶
func FromContext ¶
FromContext returns a logr.Logger constructed from the context or calls NewLogger if no logger details are found in the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.