Documentation ¶
Index ¶
- type DiscardLogger
- func (d *DiscardLogger) Debug(args ...interface{})
- func (d *DiscardLogger) Debugf(format string, args ...interface{})
- func (d *DiscardLogger) Error(args ...interface{})
- func (d *DiscardLogger) Errorf(format string, args ...interface{})
- func (d *DiscardLogger) Info(args ...interface{})
- func (d *DiscardLogger) Infof(format string, args ...interface{})
- func (d *DiscardLogger) Warn(args ...interface{})
- func (d *DiscardLogger) Warnf(format string, args ...interface{})
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiscardLogger ¶
type DiscardLogger struct{}
DiscardLogger just discards every log statement
func (*DiscardLogger) Debug ¶
func (d *DiscardLogger) Debug(args ...interface{})
Debug implements logger interface
func (*DiscardLogger) Debugf ¶
func (d *DiscardLogger) Debugf(format string, args ...interface{})
Debugf implements logger interface
func (*DiscardLogger) Error ¶
func (d *DiscardLogger) Error(args ...interface{})
Error implements logger interface
func (*DiscardLogger) Errorf ¶
func (d *DiscardLogger) Errorf(format string, args ...interface{})
Errorf implements logger interface
func (*DiscardLogger) Info ¶
func (d *DiscardLogger) Info(args ...interface{})
Info implements logger interface
func (*DiscardLogger) Infof ¶
func (d *DiscardLogger) Infof(format string, args ...interface{})
Infof implements logger interface
func (*DiscardLogger) Warn ¶
func (d *DiscardLogger) Warn(args ...interface{})
Warn implements logger interface
func (*DiscardLogger) Warnf ¶
func (d *DiscardLogger) Warnf(format string, args ...interface{})
Warnf implements logger interface
type Logger ¶
type Logger interface { Debug(args ...interface{}) Debugf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Warn(args ...interface{}) Warnf(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) }
Logger defines the common logging interface
Click to show internal directories.
Click to hide internal directories.