Documentation ¶
Index ¶
- type GenericLogger
- 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{})
- func (l *VoidLogger) Warn(args ...interface{})
- func (l *VoidLogger) Warnf(format string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericLogger ¶
type GenericLogger 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{}) }
GenericLogger represents common interface for different loggers.
func SelectLogger ¶
func SelectLogger(logger ...GenericLogger) GenericLogger
SelectLogger returns one logger from given.
type VoidLogger ¶
type VoidLogger struct{}
VoidLogger represents nil implementation of GenericLogger.
func (*VoidLogger) Debug ¶
func (l *VoidLogger) Debug(args ...interface{})
Debug void implementation.
func (*VoidLogger) Debugf ¶
func (l *VoidLogger) Debugf(format string, args ...interface{})
Debugf void implementation.
func (*VoidLogger) Error ¶
func (l *VoidLogger) Error(args ...interface{})
Error void implementation.
func (*VoidLogger) Errorf ¶
func (l *VoidLogger) Errorf(format string, args ...interface{})
Errorf void implementation.
func (*VoidLogger) Infof ¶
func (l *VoidLogger) Infof(format string, args ...interface{})
Infof void implementation.
func (*VoidLogger) Warnf ¶
func (l *VoidLogger) Warnf(format string, args ...interface{})
Warnf void implementation.
Click to show internal directories.
Click to hide internal directories.