Documentation
¶
Index ¶
Constants ¶
View Source
const ( LevelError = "ERROR" LevelInfo = "INFO" LevelV = "V[%d]" )
Variables ¶
View Source
var ( // NameSeparator separates names for logr.WithName. NameSeparator = "/" // KVFormatter is a function that renders a slice of key/value pairs into a // string with the signature: `func(kv ...interface{}) string`. KVFormatter = defaultKVFormatter )
Functions ¶
Types ¶
type Underlier ¶
type Underlier interface {
GetUnderlying() *bufLogger
}
Underlier exposes access to the underlying testing.T instance. Since callers only have a logr.Logger, they have to know which implementation is in use, so this interface is less of an abstraction and more of a way to test type conversion.
Click to show internal directories.
Click to hide internal directories.