Documentation
¶
Overview ¶
Package logging uses the logr.Logger interface to integrate with different logging implementation for structured logging
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithLogger ¶
ContextWithLogger wraps the logr NewContext function
func IsValidLevel ¶
IsValidLevel returns true if the input level is one of the valid values ("info", "debug", "warn", "none")
Types ¶
type Logger ¶
func LoggerFromContext ¶
LoggerFromContext wraps the LoggerFromContext or creates a Zap production logger
func NewStandardLogger ¶
func NewStandardLogger() Logger
NewStandardLogger wraps the creation of a Golang standard logger
func (*Logger) SetLevel ¶
SetLevel sets the global level against which all info logs will be compared. If this is greater than or equal to the "V" of the logger, the message will be logged. A higher value here means more logs will be written
Click to show internal directories.
Click to hide internal directories.