Documentation ¶
Index ¶
- type NullLogger
- func (_ NullLogger) Enabled() bool
- func (_ NullLogger) Error(_ ...interface{})
- func (_ NullLogger) Errorf(_ string, _ ...interface{})
- func (_ NullLogger) Info(_ ...interface{})
- func (_ NullLogger) Infof(_ string, _ ...interface{})
- func (log NullLogger) NewWithPrefix(_ string) logr.Logger
- func (log NullLogger) V(_ int) logr.InfoLogger
- func (log NullLogger) WithField(_ string, _ interface{}) logr.Logger
- type TestLogger
- func (_ TestLogger) Enabled() bool
- func (log TestLogger) Error(args ...interface{})
- func (log TestLogger) Errorf(format string, args ...interface{})
- func (_ TestLogger) Info(_ ...interface{})
- func (_ TestLogger) Infof(_ string, _ ...interface{})
- func (log TestLogger) NewWithPrefix(_ string) logr.Logger
- func (log TestLogger) V(v int) logr.InfoLogger
- func (log TestLogger) WithField(_ string, value interface{}) logr.Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NullLogger ¶
type NullLogger struct{}
NullLogger is a logr.Logger that does nothing.
func (NullLogger) Enabled ¶
func (_ NullLogger) Enabled() bool
func (NullLogger) Error ¶
func (_ NullLogger) Error(_ ...interface{})
func (NullLogger) Errorf ¶
func (_ NullLogger) Errorf(_ string, _ ...interface{})
func (NullLogger) Info ¶
func (_ NullLogger) Info(_ ...interface{})
func (NullLogger) Infof ¶
func (_ NullLogger) Infof(_ string, _ ...interface{})
func (NullLogger) NewWithPrefix ¶
func (log NullLogger) NewWithPrefix(_ string) logr.Logger
func (NullLogger) V ¶
func (log NullLogger) V(_ int) logr.InfoLogger
type TestLogger ¶
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(args ...interface{})
func (TestLogger) Errorf ¶
func (log TestLogger) Errorf(format string, args ...interface{})
func (TestLogger) Info ¶
func (_ TestLogger) Info(_ ...interface{})
func (TestLogger) Infof ¶
func (_ TestLogger) Infof(_ string, _ ...interface{})
func (TestLogger) NewWithPrefix ¶
func (log TestLogger) NewWithPrefix(_ string) logr.Logger
func (TestLogger) V ¶
func (log TestLogger) V(v int) logr.InfoLogger
Click to show internal directories.
Click to hide internal directories.