Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { logr.Logger // Debug prints the message and key/values at debug level (level 1) in go-logr Debug(msg string, keysAndValues ...interface{}) // LogWriterDebug returns the write end of a pipe which streams data to // the logger at debug level. LogWriterDebug(msg string, keysAndValues ...interface{}) io.WriteCloser // LogWriterInfo returns the write end of a pipe which streams data to // the logger at info level. LogWriterInfo(msg string, keysAndValues ...interface{}) io.WriteCloser }
Logger is a simple wrapper around go-logr to simplify distinguishing debug logs from info.
func WithValues ¶
WithValues creates a new Logger using the passed logr.Logger with the specified key/values.
Click to show internal directories.
Click to hide internal directories.