Documentation ¶
Index ¶
- func NewTestLogger(t T) logr.Logger
- type T
- type TestLogger
- func (_ TestLogger) Enabled() bool
- func (log TestLogger) Error(err error, msg string, args ...interface{})
- func (_ TestLogger) Info(_ string, _ ...interface{})
- func (log TestLogger) V(v int) logr.InfoLogger
- func (log TestLogger) WithName(_ string) logr.Logger
- func (log TestLogger) WithValues(_ ...interface{}) logr.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestLogger ¶
Types ¶
type TestLogger ¶
type TestLogger struct {
T
}
TestLogger is a logr.Logger that prints through a testing.T object. Only error logs will have any effect.
func (TestLogger) Enabled ¶
func (_ TestLogger) Enabled() bool
func (TestLogger) Error ¶
func (log TestLogger) Error(err error, msg string, args ...interface{})
func (TestLogger) Info ¶
func (_ TestLogger) Info(_ string, _ ...interface{})
func (TestLogger) V ¶
func (log TestLogger) V(v int) logr.InfoLogger
func (TestLogger) WithValues ¶
func (log TestLogger) WithValues(_ ...interface{}) logr.Logger
Click to show internal directories.
Click to hide internal directories.