package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Sep 6, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Dummy is a dummy logger that doesn't log.
type Logger interface {
Infof(format string, args ...interface{})
Warningf(format string, args ...interface{})
Errorf(format string, args ...interface{})
Debugf(format string, args ...interface{})
}
Logger knows how to log messages in the go fmt style.
type Std struct {
Debug bool
}
Std satisfies Logger interface using the standard go logger.
func (s Std) Debugf(format string, args ...interface{})
Debugf satisfies Logger interface.
func (s Std) Errorf(format string, args ...interface{})
Errorf satisfies Logger interface.
func (s Std) Infof(format string, args ...interface{})
Infof satisfies Logger interface.
func (s Std) Warningf(format string, args ...interface{})
Warningf satisfies Logger interface.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.