Documentation ¶
Index ¶
- type Logger
- type VoidLogger
- func (l *VoidLogger) Debug(args ...interface{})
- func (l *VoidLogger) Debugf(format string, args ...interface{})
- func (l *VoidLogger) Error(args ...interface{})
- func (l *VoidLogger) Errorf(format string, args ...interface{})
- func (l *VoidLogger) Info(args ...interface{})
- func (l *VoidLogger) Infof(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface { Debug(args ...interface{}) Debugf(format string, args ...interface{}) Info(args ...interface{}) Infof(format string, args ...interface{}) Error(args ...interface{}) Errorf(format string, args ...interface{}) }
Logger is the adapter interface that needs to be implemented, if the library should internally print logs.
This allows to hook up your logger of choice.
type VoidLogger ¶
type VoidLogger struct{}
VoidLogger is an empty implementation of the Logger interface, which doesn't actually process any logs. It may be used as a dummy implementation, if no logs should be visible.
func (*VoidLogger) Debug ¶
func (l *VoidLogger) Debug(args ...interface{})
func (*VoidLogger) Debugf ¶
func (l *VoidLogger) Debugf(format string, args ...interface{})
func (*VoidLogger) Error ¶
func (l *VoidLogger) Error(args ...interface{})
func (*VoidLogger) Errorf ¶
func (l *VoidLogger) Errorf(format string, args ...interface{})
func (*VoidLogger) Info ¶
func (l *VoidLogger) Info(args ...interface{})
func (*VoidLogger) Infof ¶
func (l *VoidLogger) Infof(format string, args ...interface{})
Click to show internal directories.
Click to hide internal directories.