Documentation
¶
Overview ¶
Package strd implements github.com/go-logr/logr.Logger in terms of Go's standard log package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a logr.Logger which is implemented by Go's standard log package, or something like it. If std is nil, this will call functions in the log package instead.
Example: stdr.New(log.New(os.Stderr, "", log.LstdFlags)))
func NewWithOptions ¶
NewWithOptions returns a logr.Logger which is implemented by Go's standard log package, or something like it. See New for details.
func SetVerbosity ¶
SetVerbosity 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. The previous verbosity value is returned. This is not concurrent-safe - callers must be sure to call it from only one goroutine.