Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
FromContext returns the global logr.Logger or the one stored by a prior call to NewContext.
func Logrus ¶
Logrus creates a sink that writes to out using a logrus format. Log entries are emitted when their level is at or below verbosity. (Only the most important entries are emitted when verbosity is zero.) Error entries get a logrus.ErrorLevel, Info entries with verbosity less than debug get a logrus.InfoLevel, and Info entries with verbosity of debug or more get a logrus.DebugLevel.
func NewContext ¶
NewContext returns a copy of ctx containing logger. Retrieve it using FromContext.
func SetLogSink ¶
SetLogSink replaces the global logr.Logger with sink. Before this is called, the global logr.Logger is a no-op.
Types ¶
This section is empty.