var globalVerbosity … // 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. func SetVerbosity(v int) int { … } // New returns a logr.Logger which is implemented by Go's standard log package, // or something like it. If std is nil, this will use a default logger // instead. // // Example: stdr.New(log.New(os.Stderr, "", log.LstdFlags|log.Lshortfile))) func New(std StdLogger) logr.Logger { … } // NewWithOptions returns a logr.Logger which is implemented by Go's standard // log package, or something like it. See New for details. func NewWithOptions(std StdLogger, opts Options) logr.Logger { … } type Options … type MessageClass … const None … const All … const Info … const Error … type StdLogger … type logger … var _ … var _ … func (l logger) Enabled(level int) bool { … } func (l logger) Info(level int, msg string, kvList ...interface{ … } func (l logger) Error(err error, msg string, kvList ...interface{ … } func (l logger) WithName(name string) logr.LogSink { … } func (l logger) WithValues(kvList ...interface{ … } func (l logger) WithCallDepth(depth int) logr.LogSink { … } type Underlier … // GetUnderlying returns the StdLogger underneath this logger. Since StdLogger // is itself an interface, the result may or may not be a Go log.Logger. func (l logger) GetUnderlying() StdLogger { … }