Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestLogger ¶ added in v1.0.0
NewTestLogger returns a logr.Logger that prints through a testing.T object. Info logs are only enabled at V(0).
Types ¶
type Options ¶ added in v1.1.0
type Options struct {
// LogTimestamp tells the logger to add a "ts" key to log
// lines. This has some overhead, so some users might not want
// it.
LogTimestamp bool
// Verbosity tells the logger which V logs to be write.
// Higher values enable more logs.
Verbosity int
}
Options carries parameters which influence the way logs are generated.
Click to show internal directories.
Click to hide internal directories.